Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-pda/pilot-link/, app-pda/pilot-link/files/
Date: Mon, 03 Aug 2020 05:31:50
Message-Id: 1596432542.fd1ce6c032d0628bf02c3a712c62398612ab6474.robbat2@gentoo
1 commit: fd1ce6c032d0628bf02c3a712c62398612ab6474
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 05:26:30 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 05:29:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd1ce6c0
7
8 app-pda/pilot-link: minor cleanup
9
10 - Drop python & java bindings
11 - handle -Werror=foo from sandbox testing
12 - reference new non-official upstream
13 - P.S. This still worked for me as of 2019; probably still works, but
14 hardware limitations in testing.
15
16 Package-Manager: Portage-3.0.1, Repoman-2.3.23
17 Closes: https://bugs.gentoo.org/show_bug.cgi?id=735238
18 Closes: https://bugs.gentoo.org/show_bug.cgi?id=714828
19 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
20
21 .../files/pilot-link-0.12.5-Werror-args.patch | 18 ++++
22 app-pda/pilot-link/pilot-link-0.12.5-r3.ebuild | 105 +++++++++++++++++++++
23 2 files changed, 123 insertions(+)
24
25 diff --git a/app-pda/pilot-link/files/pilot-link-0.12.5-Werror-args.patch b/app-pda/pilot-link/files/pilot-link-0.12.5-Werror-args.patch
26 new file mode 100644
27 index 00000000000..5e6b939d010
28 --- /dev/null
29 +++ b/app-pda/pilot-link/files/pilot-link-0.12.5-Werror-args.patch
30 @@ -0,0 +1,18 @@
31 +-Werror can have args now, but didn't when this code was originally written.
32 +
33 +Closes: https://bugs.gentoo.org/show_bug.cgi?id=714828
34 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
35 +
36 +--- pilot-link-0.12.5.orig/configure.ac 2020-08-02 21:58:12.481559328 -0700
37 ++++ pilot-link-0.12.5/configure.ac 2020-08-02 22:02:49.641291824 -0700
38 +@@ -63,8 +63,8 @@
39 + dnl Eat -Werror so configure will run properly, if the user provided it
40 + enable_werror=no
41 + save_CFLAGS="$CFLAGS"
42 +-CFLAGS=`echo $save_CFLAGS | sed -e s/-Werror//g`
43 +-CXXFLAGS=`echo $save_CXXFLAGS | sed -e s/-Werror//g`
44 ++CFLAGS=`echo $save_CFLAGS | sed -r -e 's/-Werror(=[^[:space:]]+)?//g'`
45 ++CXXFLAGS=`echo $save_CXXFLAGS | sed -r -e 's/-Werror(=[^[:space:]]+)?//g'`
46 + if test "x$CFLAGS" != "x$save_CFLAGS"; then
47 + dnl -Werror was set; treat it as implicit --enable-werror below
48 + enable_werror="yes"
49
50 diff --git a/app-pda/pilot-link/pilot-link-0.12.5-r3.ebuild b/app-pda/pilot-link/pilot-link-0.12.5-r3.ebuild
51 new file mode 100644
52 index 00000000000..f28d43f7d28
53 --- /dev/null
54 +++ b/app-pda/pilot-link/pilot-link-0.12.5-r3.ebuild
55 @@ -0,0 +1,105 @@
56 +# Copyright 1999-2020 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=6
60 +
61 +inherit autotools perl-module
62 +
63 +DESCRIPTION="Suite of tools for moving data between a Palm device and a desktop"
64 +# this is a new mirror; the distfile has the same content inside the tarball,
65 +# but the tarball itself doesn't match due to recompression and Git
66 +# indirection.
67 +HOMEPAGE="https://github.com/jichu4n/pilot-link"
68 +SRC_URI="mirror://gentoo/${P}.tar.bz2
69 + https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2"
70 +
71 +LICENSE="|| ( GPL-2 LGPL-2 )"
72 +SLOT="0"
73 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
74 +IUSE="bluetooth debug perl png static-libs threads usb"
75 +
76 +COMMON_DEPEND="
77 + dev-libs/popt
78 + >=sys-libs/ncurses-5.7-r7:0=
79 + >=sys-libs/readline-6:0=
80 + virtual/libiconv
81 + bluetooth? ( net-wireless/bluez )
82 + perl? ( >=dev-lang/perl-5.12 )
83 + png? ( media-libs/libpng:0= )
84 + usb? ( virtual/libusb:0 )
85 +"
86 +DEPEND="${COMMON_DEPEND}"
87 +RDEPEND="${COMMON_DEPEND}"
88 +
89 +RESTRICT="test" #672872
90 +
91 +src_prepare() {
92 + default
93 +
94 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-java-install.patch
95 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-respect-javacflags.patch
96 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-werror_194921.patch
97 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-threads.patch
98 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libpng14.patch
99 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-png.patch
100 + eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-distutils.patch
101 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libusb-compat-usb_open.patch
102 + eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.5-perl514.patch
103 + eapply -p1 "${FILESDIR}"/${PN}-0.12.5-Werror-args.patch
104 +
105 + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467600
106 +
107 + AT_M4DIR="m4" eautoreconf
108 +
109 +}
110 +
111 +src_configure() {
112 + # tcl/tk support is disabled as per upstream request.
113 + # readline is not really optional, bug #626504
114 + # Does not build with Java 8
115 + # Does not build with Python 3, bug 735238
116 + econf \
117 + --includedir="${EPREFIX}"/usr/include/libpisock \
118 + $(use_enable static-libs static) \
119 + --enable-conduits \
120 + --with-readline \
121 + $(use_enable threads) \
122 + $(use_enable usb libusb) \
123 + $(use_enable debug) \
124 + $(use_with png libpng) \
125 + $(use_with bluetooth bluez) \
126 + $(use_with perl) \
127 + --without-java \
128 + --without-tcl \
129 + --without-python
130 +}
131 +
132 +src_compile() {
133 + emake
134 +
135 + if use perl; then
136 + cd "${S}"/bindings/Perl
137 + perl-module_src_configure
138 + local mymake=( OTHERLDFLAGS="${LDFLAGS} -L../../libpisock/.libs -lpisock" ) #308629
139 + perl-module_src_compile
140 + fi
141 +
142 + # Python 2.0 only; not enabled anymore
143 + # bug 735238
144 +}
145 +
146 +src_install() {
147 + emake DESTDIR="${D}" install
148 + dodoc ChangeLog NEWS README doc/{README*,TODO}
149 +
150 + if use perl; then
151 + cd "${S}"/bindings/Perl
152 + perl-module_src_install
153 + fi
154 +
155 + find "${D}" -name '*.la' -delete || die
156 +}
157 +
158 +pkg_preinst() {
159 + perl_set_version
160 +}