Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-pda/pilot-link/
Date: Sat, 20 Oct 2018 11:39:48
Message-Id: 1540035535.6c72c05d2a0c14aeadc6a46a817a65f93e3b83f8.pacho@gentoo
1 commit: 6c72c05d2a0c14aeadc6a46a817a65f93e3b83f8
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 20 10:35:40 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 20 11:38:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c72c05d
7
8 app-pda/pilot-link: Upstream dead, doesn't build with USE -readline
9
10 Closes: https://bugs.gentoo.org/620980
11 Closes: https://bugs.gentoo.org/626504
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14
15 app-pda/pilot-link/pilot-link-0.12.5-r2.ebuild | 115 +++++++++++++++++++++++++
16 1 file changed, 115 insertions(+)
17
18 diff --git a/app-pda/pilot-link/pilot-link-0.12.5-r2.ebuild b/app-pda/pilot-link/pilot-link-0.12.5-r2.ebuild
19 new file mode 100644
20 index 00000000000..0c758b2a633
21 --- /dev/null
22 +++ b/app-pda/pilot-link/pilot-link-0.12.5-r2.ebuild
23 @@ -0,0 +1,115 @@
24 +# Copyright 1999-2018 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +PYTHON_COMPAT=( python2_7 )
29 +
30 +inherit autotools distutils-r1 perl-module java-pkg-opt-2
31 +
32 +DESCRIPTION="Suite of tools for moving data between a Palm device and a desktop"
33 +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
34 +SRC_URI="mirror://gentoo/${P}.tar.bz2
35 + https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2"
36 +
37 +LICENSE="|| ( GPL-2 LGPL-2 )"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
40 +IUSE="bluetooth debug java perl png python static-libs threads usb"
41 +
42 +COMMON_DEPEND="
43 + dev-libs/popt
44 + >=sys-libs/ncurses-5.7-r7:0=
45 + >=sys-libs/readline-6:0=
46 + virtual/libiconv
47 + bluetooth? ( net-wireless/bluez )
48 + perl? ( >=dev-lang/perl-5.12 )
49 + png? ( media-libs/libpng:0= )
50 + usb? ( virtual/libusb:0 )
51 +"
52 +DEPEND="${COMMON_DEPEND}
53 + java? ( >=virtual/jdk-1.4 )
54 +"
55 +RDEPEND="${COMMON_DEPEND}
56 + java? ( >=virtual/jre-1.4 )
57 +"
58 +
59 +src_prepare() {
60 + default
61 +
62 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-java-install.patch
63 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-respect-javacflags.patch
64 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-werror_194921.patch
65 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-threads.patch
66 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libpng14.patch
67 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-png.patch
68 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-distutils.patch
69 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libusb-compat-usb_open.patch
70 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.5-perl514.patch
71 +
72 + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467600
73 +
74 + AT_M4DIR="m4" eautoreconf
75 +}
76 +
77 +src_configure() {
78 + # tcl/tk support is disabled as per upstream request.
79 + # readline is not really optional, bug #626504
80 + econf \
81 + --includedir="${EPREFIX}"/usr/include/libpisock \
82 + $(use_enable static-libs static) \
83 + --enable-conduits \
84 + --with-readline \
85 + $(use_enable threads) \
86 + $(use_enable usb libusb) \
87 + $(use_enable debug) \
88 + $(use_with png libpng) \
89 + $(use_with bluetooth bluez) \
90 + $(use_with perl) \
91 + $(use_with java) \
92 + --without-tcl \
93 + $(use_with python)
94 +}
95 +
96 +src_compile() {
97 + emake
98 +
99 + if use perl; then
100 + cd "${S}"/bindings/Perl
101 + perl-module_src_configure
102 + local mymake=( OTHERLDFLAGS="${LDFLAGS} -L../../libpisock/.libs -lpisock" ) #308629
103 + perl-module_src_compile
104 + fi
105 +
106 + if use python; then
107 + cd "${S}"/bindings/Python
108 + distutils-r1_src_compile
109 + fi
110 +}
111 +
112 +src_install() {
113 + emake DESTDIR="${D}" install
114 + dodoc ChangeLog NEWS README doc/{README*,TODO}
115 +
116 + if use java; then
117 + cd "${S}"/bindings/Java
118 + java-pkg_newjar ${PN}.jar
119 + java-pkg_doso libjpisock.so
120 + fi
121 +
122 + if use perl; then
123 + cd "${S}"/bindings/Perl
124 + perl-module_src_install
125 + fi
126 +
127 + if use python; then
128 + cd "${S}"/bindings/Python
129 + distutils-r1_src_install
130 + fi
131 +
132 + find "${D}" -name '*.la' -delete || die
133 +}
134 +
135 +pkg_preinst() {
136 + perl_set_version
137 + java-pkg-opt-2_pkg_preinst
138 +}