diff options
Diffstat (limited to 'dev-libs/libunibreak')
-rw-r--r-- | dev-libs/libunibreak/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libunibreak/libunibreak-5.0-r1.ebuild | 54 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/libunibreak/Manifest b/dev-libs/libunibreak/Manifest index 95d07be0e1cd..ac226c231fb4 100644 --- a/dev-libs/libunibreak/Manifest +++ b/dev-libs/libunibreak/Manifest @@ -1,3 +1,5 @@ DIST libunibreak-4.3.tar.gz 639886 BLAKE2B ec044b659f1a837b4e6627067b96a6f19ee8302602d635e1e32aab9533486b5cd063aa99114c6443ede9d76d3f382d7492eac8b52b84a4baa2ccd9c2129e79d8 SHA512 4b53fd169912033403b6ca09047b7b928211fab3607ef26070ab731054138b9a291f7d138d3a479f9cde8edb0fabf8da114da68aee32e60cddf45cc3baae1170 +DIST libunibreak-5.0.tar.gz 664105 BLAKE2B 4755f77da7aeece8e43f121e35124f85afa31740394cecc1a192d0b284d8d683765a6a38898f5ffd8a567e2d65a086fdc25a816a77337f242df7be5c14ae6e98 SHA512 33ce584208fea1f2f22dcc49592a467b0fdc04a8b9ed80c97d7ce2058e8d6c919b4a173c9ec3ca38411ffa497d95d2abe207dfc09866f9fcba125867015cf9fb EBUILD libunibreak-4.3.ebuild 1195 BLAKE2B 5bf75bc9bcff1632f31c92b6b1f4d7ed8723c75a8406f37517b33e83e245668b96cc0cbe301107d5c5894dc28d1e73e7e5af4c66eaf99fb4e5742c739fc160a2 SHA512 7f859b573847358cfa86d142d209fe8311e978698c88232698b0612d431d9dbb25d48cbfd8f88fc4b3076c30ae3ef4dec589adb379c59cad12008ba6e10ddfe2 +EBUILD libunibreak-5.0-r1.ebuild 1199 BLAKE2B 46072fd0bd8b3a6618f7902459e221ab6d3b97aea91efa90b426a17f413db17a1faee7651c7e7fd2ab7dce5b2ab265112161407ee33e1ed401b9bd9469dc1576 SHA512 4fea4256e1bd90c8003481975f2570f71b80da48786e07ceb553de86f65b0707ebcfee8b30b503025dcfd2c8763508df859d81004326e6736f83f1f4359b153f MISC metadata.xml 556 BLAKE2B 81eeae18da2e62a2c70f3483ebbca634be4e9acda776645fb8f231418b8dba875bcadb12db76a5fb8dda85226e8362fc6944b6d038de2195ebaece84861883e9 SHA512 a13a9cf0512fdec4cb1d088a7af53e81b477f3cee9a4f605ffad7c20201e2a3ef09c522228441fffde2d1b100c02f413f7dac8c276ec330ade88347333be931f diff --git a/dev-libs/libunibreak/libunibreak-5.0-r1.ebuild b/dev-libs/libunibreak/libunibreak-5.0-r1.ebuild new file mode 100644 index 000000000000..71085ecc8001 --- /dev/null +++ b/dev-libs/libunibreak/libunibreak-5.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 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- '_')/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="doc +man static-libs" + +# Tests require internet access to www.unicode.org +RESTRICT="test" + +BDEPEND="man? ( app-doc/doxygen )" + +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 +} |