Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liblouis/
Date: Sun, 18 Aug 2019 19:34:31
Message-Id: 1566156835.3427df169ef1ab3bdf4fa9cd469e2707a21078c3.williamh@gentoo
1 commit: 3427df169ef1ab3bdf4fa9cd469e2707a21078c3
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 18 19:33:36 2019 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 19:33:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3427df16
7
8 dev-libs/liblouis: 3.10.0 bump
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
12
13 dev-libs/liblouis/Manifest | 1 +
14 dev-libs/liblouis/liblouis-3.10.0.ebuild | 66 ++++++++++++++++++++++++++++++++
15 2 files changed, 67 insertions(+)
16
17 diff --git a/dev-libs/liblouis/Manifest b/dev-libs/liblouis/Manifest
18 index 7bdcfddb3c1..3ffb22baa60 100644
19 --- a/dev-libs/liblouis/Manifest
20 +++ b/dev-libs/liblouis/Manifest
21 @@ -1 +1,2 @@
22 DIST liblouis-2.5.3.tar.gz 3785311 BLAKE2B 15130dfa6c32b9c12b6ffccf4a8b2185bcc8fe483e8822d4fdd9f1c1cd0c3e8f33325419f75a9eb23e1414743fe01b44041c836a06e4ff040708b95998251854 SHA512 5aa65f3a0b7cef37fe7cd8ccf09df8c40f38d183a88d1be9f1251b40406204e57a8d95716bf1de3569b09b640be613cc3e0bd0e05dc4d544face00bfc8d75ac7
23 +DIST liblouis-3.10.0.tar.gz 13335626 BLAKE2B a4c7f81f15c202c0e1030119f805e218dd51852af57065c441241f4e182828036372750231726802adbb835a7af05ccbf029316da376f3f89dd62ae9d833f838 SHA512 e05d42ba352b1336b10ecd3d320c2bed33250cd636767ecd77837530577c537de4f4e806ddaf1ed7e8b9ec766c84adf6ab045595235c1020f2bb31ba791f3833
24
25 diff --git a/dev-libs/liblouis/liblouis-3.10.0.ebuild b/dev-libs/liblouis/liblouis-3.10.0.ebuild
26 new file mode 100644
27 index 00000000000..22df15db950
28 --- /dev/null
29 +++ b/dev-libs/liblouis/liblouis-3.10.0.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
37 +PYTHON_REQ_USE='wide-unicode(+)'
38 +DISTUTILS_OPTIONAL=1
39 +inherit autotools distutils-r1
40 +
41 +DESCRIPTION="An open-source braille translator and back-translator"
42 +HOMEPAGE="https://github.com/liblouis/liblouis"
43 +SRC_URI="https://github.com/liblouis/liblouis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2.1+"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
48 +IUSE="python"
49 +RDEPEND="python? ( ${PYTHON_DEPS} )"
50 +DEPEND="${RDEPEND}"
51 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
52 +
53 +src_prepare() {
54 + default
55 +
56 + if use python; then
57 + pushd python > /dev/null
58 + distutils-r1_src_prepare
59 + popd > /dev/null
60 + fi
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + econf --enable-ucs4
66 +}
67 +
68 +src_compile() {
69 + default
70 +
71 + if use python; then
72 + pushd python > /dev/null
73 + # setup.py imports liblouis to get the version number,
74 + # and this causes the shared library to be dlopened
75 + # at build-time. Hack around it with LD_PRELOAD.
76 + # Thanks ArchLinux.
77 + LD_PRELOAD+=':../liblouis/.libs/liblouis.so'
78 + distutils-r1_src_compile
79 + popd > /dev/null
80 + fi
81 +}
82 +
83 +src_install() {
84 + emake install DESTDIR="${D}" || die
85 +
86 + if use python; then
87 + pushd python > /dev/null
88 + LD_PRELOAD+=':../liblouis/.libs/liblouis.so' \
89 + distutils-r1_src_install
90 + popd > /dev/null
91 + fi
92 +
93 + DOCS=( README AUTHORS NEWS ChangeLog doc/liblouis.txt )
94 + HTML_DOCS=( doc/liblouis.html )
95 + einstalldocs
96 +}