commit:     8b4ea0f6d2bed140116f69855d1d3100ea0cf020
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 14 09:40:09 2017 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 09:40:09 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b4ea0f6

dev-libs/libunibreak: initial import

Reported-by: Johannes Janssen <mail <AT> johannes-janssen.de>
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(+)

diff --git a/dev-libs/libunibreak/Manifest b/dev-libs/libunibreak/Manifest
new file mode 100644
index 00000000000..487fd898f5d
--- /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 00000000000..f531bb66e38
--- /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 00000000000..a8bbb441f29
--- /dev/null
+++ b/dev-libs/libunibreak/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <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="man">Generate man pages with doxygen.</flag>
+               <flag name="doc">Install html API documentation.</flag>
+       </use>
+</pkgmetadata>

Reply via email to