diff options
Diffstat (limited to 'dev-libs/libunibreak')
-rw-r--r-- | dev-libs/libunibreak/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/libunibreak/libunibreak-4.0.ebuild | 56 | ||||
-rw-r--r-- | dev-libs/libunibreak/metadata.xml | 16 |
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/libunibreak/Manifest b/dev-libs/libunibreak/Manifest new file mode 100644 index 000000000000..61a1f4fefe2d --- /dev/null +++ b/dev-libs/libunibreak/Manifest @@ -0,0 +1,3 @@ +DIST libunibreak-4.0.tar.gz 629403 BLAKE2B 067d09bd48c5381ebef1f3a0ca488732e216234e45977d5c2eee181c9c98b435a7e4030fb5bdbd83035a7937c2107ec05f78dc33158ec64297511d24e329f03d SHA512 43da73f66fabd8fdef444c5a06ad1800464a0aeab590938522d6c19973950a242f2ccc0575a93d10d87bdcf82610452117ac081ddb73f47271a8c2a65897e11c +EBUILD libunibreak-4.0.ebuild 1271 BLAKE2B c5f7d7a51ea9c2b7ff881ba8fcd0381f6f35671d6758ab17486d0311cd29d686fbb78ccc23190aa3952fb84fc45c6a4646cc8dce57670df40eeb7967a1c23000 SHA512 d47e18f51abc0f7497dfc97ed4cc81a3ef9b33c106687cc94d4954fb3987089cb37a0958d79ccc239b8fcaead0cfb32ccdf42b299ec292b532f09c1dd6438c66 +MISC metadata.xml 614 BLAKE2B 9a68d6b1935c236312fb74a18fe8d417c8e11970be97aad071d04b5a2c57cd18df55e2b48a855ff81a3287636af6afb4abf1ab0fa84c6391c013500f65585061 SHA512 bb9c9c2b2264cbb2c7596146c1be2b51a1e0d710432b86b3f68dd7fe9832abe7aa68ffe7806e58b6e4d044d269f86a533b1b9bc437eb5cb80bac39027989e62d diff --git a/dev-libs/libunibreak/libunibreak-4.0.ebuild b/dev-libs/libunibreak/libunibreak-4.0.ebuild new file mode 100644 index 000000000000..ede6eebde7e0 --- /dev/null +++ b/dev-libs/libunibreak/libunibreak-4.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit versionator + +DESCRIPTION="Line and word breaking library" +HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/" +SRC_URI="https://github.com/adah1972/${PN}/releases/download/${PN}_$(replace_all_version_separators '_')/${P}.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 +} diff --git a/dev-libs/libunibreak/metadata.xml b/dev-libs/libunibreak/metadata.xml new file mode 100644 index 000000000000..fc50d1f50d2e --- /dev/null +++ b/dev-libs/libunibreak/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>grozin@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + Libunibreak is an implementation of the line breaking and word breaking algorithms + as described in Unicode Standard Annex 14 and Unicode Standard Annex 29. It is + designed to be used in a generic text renderer. + </longdescription> + <use> + <flag name="doc">Install html API documentation.</flag> + <flag name="man">Generate man pages with doxygen.</flag> + </use> +</pkgmetadata> |