From 7406b4a3505e20eabb9d447d514cdc398c299eb9 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Thu, 14 Dec 2017 23:32:56 +0700 Subject: [PATCH] dev-libs/libunibreak: initial import Package-Manager: Portage-2.3.18, Repoman-2.3.6 --- dev-libs/libunibreak/Manifest | 1 + dev-libs/libunibreak/libunibreak-4.0.ebuild | 47 +++++++++++++++++++++ dev-libs/libunibreak/metadata.xml | 16 +++++++ 3 files changed, 64 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..3cda64803c2f --- /dev/null +++ b/dev-libs/libunibreak/Manifest @@ -0,0 +1 @@ +DIST libunibreak-4.0.tar.gz 629403 BLAKE2B 067d09bd48c5381ebef1f3a0ca488732e216234e45977d5c2eee181c9c98b435a7e4030fb5bdbd83035a7937c2107ec05f78dc33158ec64297511d24e329f03d SHA512 43da73f66fabd8fdef444c5a06ad1800464a0aeab590938522d6c19973950a242f2ccc0575a93d10d87bdcf82610452117ac081ddb73f47271a8c2a65897e11c diff --git a/dev-libs/libunibreak/libunibreak-4.0.ebuild b/dev-libs/libunibreak/libunibreak-4.0.ebuild new file mode 100644 index 000000000000..79b94f2d7719 --- /dev/null +++ b/dev-libs/libunibreak/libunibreak-4.0.ebuild @@ -0,0 +1,47 @@ +# 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() { + 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' + 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 + PREFIX=`echo "${WORKDIR}" | sed -e 's|/|_|g'` + rm "${D}usr/share/man/man3/${PREFIX}_${P}_src_.3"* || die 'rm man failed' + 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 @@ + + + + + grozin@gentoo.org + + + 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. + + + Install html API documentation. + Generate man pages with doxygen. + + -- 2.26.2