dev-libs/libunibreak - 8.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/libunibreak-8.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/libunibreak-8.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/libunibreak-8.0

Package Information

Description:
Line and word breaking library
Homepage:
http://vimgadgets.sourceforge.net/libunibreak/ https://github.com/adah1972/libunibreak
License:
ZLIB

Ebuild Details

Version EAPI Keywords Slot
8.0 8 ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 0/$(ver_cut 1)
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Line and word breaking library"
HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/ https://github.com/adah1972/libunibreak"
SRC_URI="https://github.com/adah1972/libunibreak/releases/download/${PN}_${PV/./_}/${P}.tar.gz"

LICENSE="ZLIB"
SLOT="0/$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="doc man static-libs test"
RESTRICT="!test? ( test )"

BDEPEND="
	man? ( app-text/doxygen )
	doc? (
		app-text/doxygen
		media-gfx/graphviz
	)
"

src_prepare() {
	default

	# Clean this up + src_install if/when https://github.com/adah1972/libunibreak/pull/47
	# is merged.
	if use man; then
		echo 'GENERATE_MAN=YES' >> Doxyfile || die
	fi
}

src_configure() {
	econf $(use_enable static-libs static)
}

src_compile() {
	default
	if use man; then
		doxygen || die 'doxygen failed'
		pushd "${S}"/doc/man > /dev/null
		mv man3 x || die
		mkdir man3 || die
		for h in graphemebreak linebreak linebreakdef unibreakbase unibreakdef wordbreak; do
			mv x/${h}.h.3 man3/ || die "man ${h} not found"
		done
		rm -rf x || die
		popd > /dev/null
	fi
}

src_install() {
	use doc && HTML_DOCS=( doc/html/. )
	default
	find "${D}" -name '*.la' -delete || die
	if use man; then
		doman doc/man/man3/*.3
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/libunibreak | euse -E <flag> -p dev-libs/libunibreak | euse -D <flag> -p dev-libs/libunibreak

Global/Standard Flags

doc
man

Dependencies

BDEPEND

	man? ( app-text/doxygen )
	doc? (
		app-text/doxygen
		media-gfx/graphviz
	)

Manifest for 8.0

Type File Size Source URLs
DIST libunibreak-8.0.tar.gz 1088508 bytes https://github.com/adah1972/libunibreak/releases/download/libunibreak_8_0/libunibreak-8.0.tar.gz