1 |
commit: 29db714e996b321b6903655a96c6e055749f9ee8 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 04:48:22 2016 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 04:51:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29db714e |
7 |
|
8 |
sys-libs/libhx: fix bug 584724 |
9 |
|
10 |
1. Remove lyx autodetection and disable PDF documentation rebuild, |
11 |
since source tarball already contains PDF docs and we don't need to |
12 |
rebuild it. |
13 |
2. Migrate to EAPI=6. |
14 |
3. Add USE="doc". |
15 |
|
16 |
Package-Manager: portage-2.3.0_rc1 |
17 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
18 |
|
19 |
sys-libs/libhx/files/libhx-3.22-no-lyx.patch | 12 ++++++++ |
20 |
sys-libs/libhx/libhx-3.22-r1.ebuild | 41 ++++++++++++++++++++++++++++ |
21 |
2 files changed, 53 insertions(+) |
22 |
|
23 |
diff --git a/sys-libs/libhx/files/libhx-3.22-no-lyx.patch b/sys-libs/libhx/files/libhx-3.22-no-lyx.patch |
24 |
new file mode 100644 |
25 |
index 0000000..1c63d25 |
26 |
--- /dev/null |
27 |
+++ b/sys-libs/libhx/files/libhx-3.22-no-lyx.patch |
28 |
@@ -0,0 +1,12 @@ |
29 |
+--- libHX-3.22/configure.ac.orig 2014-08-25 19:16:37.000000000 +0400 |
30 |
++++ libHX-3.22/configure.ac 2016-06-01 11:09:42.287438190 +0300 |
31 |
+@@ -107,8 +107,7 @@ |
32 |
+ AC_CHECK_FUNCS([getegid geteuid getpid getppid]) |
33 |
+ AM_CONDITIONAL([B_PROC], [test "$b_proc" = 1]) |
34 |
+ |
35 |
+-AC_CHECK_PROGS([LYX], [lyx]) |
36 |
+-AM_CONDITIONAL([BUILD_DOCS], [test -n "$LYX"]) |
37 |
++AM_CONDITIONAL([BUILD_DOCS], [false]) |
38 |
+ |
39 |
+ regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT" |
40 |
+ regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \ |
41 |
|
42 |
diff --git a/sys-libs/libhx/libhx-3.22-r1.ebuild b/sys-libs/libhx/libhx-3.22-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 0000000..db64684 |
45 |
--- /dev/null |
46 |
+++ b/sys-libs/libhx/libhx-3.22-r1.ebuild |
47 |
@@ -0,0 +1,41 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit autotools eutils |
55 |
+ |
56 |
+DESCRIPTION="Platform independent library providing basic system functions" |
57 |
+HOMEPAGE="http://libhx.sourceforge.net" |
58 |
+SRC_URI="mirror://sourceforge/${PN}/libHX-${PV}.tar.xz" |
59 |
+ |
60 |
+LICENSE="GPL-3" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~ppc ~x86" |
63 |
+IUSE="doc" |
64 |
+ |
65 |
+DEPEND="app-arch/xz-utils" |
66 |
+RDEPEND="" |
67 |
+ |
68 |
+S="${WORKDIR}/libHX-${PV}" |
69 |
+ |
70 |
+PATCHES=( "${FILESDIR}/${P}-no-lyx.patch" ) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ eautoreconf |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ default |
79 |
+ |
80 |
+ if use doc; then |
81 |
+ dodoc doc/*.txt |
82 |
+ else |
83 |
+ dodoc doc/changelog.txt |
84 |
+ rm "${D}/usr/share/doc/${PF}/"*.pdf || die |
85 |
+ fi |
86 |
+ |
87 |
+ prune_libtool_files --all |
88 |
+} |