From: | "Christopher Brannon (teiresias)" <teiresias@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/liblouis: metadata.xml ChangeLog liblouis-2.5.3.ebuild |
Date: | Wed, 02 Oct 2013 04:27:03 |
Message-Id: | 20131002042657.A9E632004C@flycatcher.gentoo.org |
1 | teiresias 13/10/02 04:26:57 |
2 | |
3 | Added: metadata.xml ChangeLog liblouis-2.5.3.ebuild |
4 | Log: |
5 | Add liblouis from the sunrise overlay. Closes bug #305899. |
6 | |
7 | Thanks to Angelo D'Autilia <sydro@×××××.it> for the initial ebuild. |
8 | |
9 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0x6521e06d) |
10 | |
11 | Revision Changes Path |
12 | 1.1 dev-libs/liblouis/metadata.xml |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/metadata.xml?rev=1.1&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/metadata.xml?rev=1.1&content-type=text/plain |
16 | |
17 | Index: metadata.xml |
18 | =================================================================== |
19 | <?xml version="1.0" encoding="UTF-8"?> |
20 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
21 | <pkgmetadata> |
22 | <herd>accessibility</herd> |
23 | <maintainer> |
24 | <email>teiresias@g.o</email> |
25 | <name>Chris Brannon</name> |
26 | </maintainer> |
27 | </pkgmetadata> |
28 | |
29 | |
30 | |
31 | 1.1 dev-libs/liblouis/ChangeLog |
32 | |
33 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/ChangeLog?rev=1.1&view=markup |
34 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/ChangeLog?rev=1.1&content-type=text/plain |
35 | |
36 | Index: ChangeLog |
37 | =================================================================== |
38 | # ChangeLog for dev-libs/liblouis |
39 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
40 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/liblouis/ChangeLog,v 1.1 2013/10/02 04:26:57 teiresias Exp $ |
41 | |
42 | *liblouis-2.5.3 (01 Oct 2013) |
43 | |
44 | 01 Oct 2013; Christopher Brannon <teiresias@g.o> |
45 | +liblouis-2.5.3.ebuild, +metadata.xml: |
46 | Add liblouis from the sunrise overlay. Closes bug #305899. |
47 | Thanks to Angelo D'Autilia <sydro@×××××.it> for the initial ebuild. |
48 | |
49 | |
50 | |
51 | |
52 | 1.1 dev-libs/liblouis/liblouis-2.5.3.ebuild |
53 | |
54 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/liblouis-2.5.3.ebuild?rev=1.1&view=markup |
55 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liblouis/liblouis-2.5.3.ebuild?rev=1.1&content-type=text/plain |
56 | |
57 | Index: liblouis-2.5.3.ebuild |
58 | =================================================================== |
59 | # Copyright 1999-2013 Gentoo Foundation |
60 | # Distributed under the terms of the GNU General Public License v2 |
61 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/liblouis/liblouis-2.5.3.ebuild,v 1.1 2013/10/02 04:26:57 teiresias Exp $ |
62 | |
63 | EAPI="5" |
64 | |
65 | PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
66 | PYTHON_REQ_USE='wide-unicode(+)' |
67 | DISTUTILS_OPTIONAL=1 |
68 | inherit distutils-r1 |
69 | |
70 | DESCRIPTION="An open-source braille translator and back-translator" |
71 | HOMEPAGE="http://code.google.com/p/liblouis/" |
72 | SRC_URI="http://liblouis.googlecode.com/files/${P}.tar.gz" |
73 | |
74 | LICENSE="LGPL-3" |
75 | SLOT="0" |
76 | KEYWORDS="~amd64 ~x86" |
77 | IUSE="python" |
78 | RDEPEND="python? ( ${PYTHON_DEPS} )" |
79 | DEPEND="${RDEPEND}" |
80 | REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
81 | |
82 | src_prepare() { |
83 | default |
84 | |
85 | if use python; then |
86 | pushd python > /dev/null |
87 | distutils-r1_src_prepare |
88 | popd > /dev/null |
89 | fi |
90 | } |
91 | |
92 | src_configure() { |
93 | econf --enable-ucs4 |
94 | } |
95 | |
96 | src_compile() { |
97 | default |
98 | |
99 | if use python; then |
100 | pushd python > /dev/null |
101 | # setup.py imports liblouis to get the version number, |
102 | # and this causes the shared library to be dlopened |
103 | # at build-time. Hack around it with LD_PRELOAD. |
104 | # Thanks ArchLinux. |
105 | LD_PRELOAD+=':../liblouis/.libs/liblouis.so' |
106 | distutils-r1_src_compile |
107 | popd > /dev/null |
108 | fi |
109 | } |
110 | |
111 | src_install() { |
112 | emake install DESTDIR="${D}" || die |
113 | |
114 | if use python; then |
115 | pushd python > /dev/null |
116 | LD_PRELOAD+=':../liblouis/.libs/liblouis.so' \ |
117 | distutils-r1_src_install |
118 | popd > /dev/null |
119 | fi |
120 | |
121 | dodoc README AUTHORS NEWS ChangeLog || die |
122 | dohtml doc/liblouis.html |
123 | } |