diff options
author | Andrey Grozin <grozin@gentoo.org> | 2020-01-31 20:49:31 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2020-01-31 20:50:31 +0700 |
commit | 21e52877d6f5c5f6cb8bbabcc2797083d1c8b622 (patch) | |
tree | a2e18ac79dcb2bea4558f80f7a67fdfb304e444b /dev-libs/libunibreak/libunibreak-4.2.ebuild | |
parent | dev-python/virtualenv: amd64 stable wrt bug #706508 (diff) | |
download | gentoo-21e52877d6f5c5f6cb8bbabcc2797083d1c8b622.tar.gz gentoo-21e52877d6f5c5f6cb8bbabcc2797083d1c8b622.tar.bz2 gentoo-21e52877d6f5c5f6cb8bbabcc2797083d1c8b622.zip |
dev-libs/libunibreak: bump to 4.2
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'dev-libs/libunibreak/libunibreak-4.2.ebuild')
-rw-r--r-- | dev-libs/libunibreak/libunibreak-4.2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-libs/libunibreak/libunibreak-4.2.ebuild b/dev-libs/libunibreak/libunibreak-4.2.ebuild new file mode 100644 index 000000000000..cf949d1c77a3 --- /dev/null +++ b/dev-libs/libunibreak/libunibreak-4.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Line and word breaking library" +HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/" +SRC_URI="https://github.com/adah1972/${PN}/releases/download/${PN}_$(ver_rs 1- '_')-1/${P}-1.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="doc +man static-libs" + +# Tests require internet access to www.unicode.org +RESTRICT="test" + +DEPEND="man? ( app-doc/doxygen )" +RDEPEND="!dev-libs/liblinebreak" + +src_prepare() { + if use man; then + echo 'GENERATE_MAN=YES' >> Doxyfile || die + echo 'GENERATE_HTML=NO' >> Doxyfile || die + fi + default +} + +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 +} |