From 8b4ea0f6d2bed140116f69855d1d3100ea0cf020 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Thu, 14 Dec 2017 16:40:09 +0700 Subject: [PATCH] dev-libs/libunibreak: initial import Reported-by: Johannes Janssen Closes: https://bugs.gentoo.org/640968 Package-Manager: Portage-2.3.16, Repoman-2.3.6 --- dev-libs/libunibreak/Manifest | 1 + dev-libs/libunibreak/libunibreak-4.0.ebuild | 39 +++++++++++++++++++++ dev-libs/libunibreak/metadata.xml | 14 ++++++++ 3 files changed, 54 insertions(+) create mode 100644 dev-libs/libunibreak/Manifest create mode 100644 dev-libs/libunibreak/libunibreak-4.0.ebuild create mode 100644 dev-libs/libunibreak/metadata.xml diff --git a/dev-libs/libunibreak/Manifest b/dev-libs/libunibreak/Manifest new file mode 100644 index 000000000000..487fd898f5d1 --- /dev/null +++ b/dev-libs/libunibreak/Manifest @@ -0,0 +1 @@ +DIST libunibreak-4.0.tar.gz 629403 SHA256 f7329bef1eb169d3363f040cefcc323cfd0a0bc53290a35a395e1d1adc849539 SHA512 43da73f66fabd8fdef444c5a06ad1800464a0aeab590938522d6c19973950a242f2ccc0575a93d10d87bdcf82610452117ac081ddb73f47271a8c2a65897e11c WHIRLPOOL ad71bc5910ca3dff994651022a5a6c6093cd4023852270fa243848f7576287b7cec4ad02a6b27686149491cb52824a93fdb6a6dac4c878d67db2f4041282d300 diff --git a/dev-libs/libunibreak/libunibreak-4.0.ebuild b/dev-libs/libunibreak/libunibreak-4.0.ebuild new file mode 100644 index 000000000000..f531bb66e382 --- /dev/null +++ b/dev-libs/libunibreak/libunibreak-4.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 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" + +DEPEND="man? ( app-doc/doxygen )" +RDEPEND="!dev-libs/liblinebreak" + +src_prepare() { + use man && echo -e 'GENERATE_MAN=YES\nGENERATE_HTML=NO' >> Doxyfile + default +} + +src_configure() { + econf \ + $(use_enable static-libs static) + use doc && export HTML_DOCS=( doc/html/. ) +} + +src_compile() { + default + use man && doxygen || die +} + +src_install() { + default + prune_libtool_files + use man && find "${D}/usr/include" -type f -execdir doman "${S}/doc/man/man3/{}.3" \; +} diff --git a/dev-libs/libunibreak/metadata.xml b/dev-libs/libunibreak/metadata.xml new file mode 100644 index 000000000000..a8bbb441f294 --- /dev/null +++ b/dev-libs/libunibreak/metadata.xml @@ -0,0 +1,14 @@ + + + + + + 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. + + + Generate man pages with doxygen. + Install html API documentation. + + -- 2.26.2