Gentoo Archives: gentoo-commits

From: "Petteri Raty (betelgeuse)" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/rxtx: ChangeLog rxtx-2.1.7.2-r2.ebuild
Date: Sun, 18 Nov 2007 15:55:22
Message-Id: E1ItmUP-0001N9-SB@stork.gentoo.org
1 betelgeuse 07/11/18 15:55:17
2
3 Modified: ChangeLog
4 Added: rxtx-2.1.7.2-r2.ebuild
5 Log:
6 Fix configure.in so that it work with Java 1.6 and 1.7. Thanks to nebojsa <nebojsa@××××××××.net>.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.9 dev-java/rxtx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/rxtx/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/rxtx/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/rxtx/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/rxtx/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 4 Nov 2007 02:34:34 -0000 1.8
23 +++ ChangeLog 18 Nov 2007 15:55:17 -0000 1.9
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-java/rxtx
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/rxtx/ChangeLog,v 1.8 2007/11/04 02:34:34 betelgeuse Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/rxtx/ChangeLog,v 1.9 2007/11/18 15:55:17 betelgeuse Exp $
29 +
30 +*rxtx-2.1.7.2-r2 (18 Nov 2007)
31 +
32 + 18 Nov 2007; Petteri Räty <betelgeuse@g.o>
33 + +rxtx-2.1.7.2-r2.ebuild:
34 + Fix configure.in so that it work with Java 1.6 and 1.7. Thanks to nebojsa
35 + <nebojsa@××××××××.net>.
36
37 04 Nov 2007; Petteri Räty <betelgeuse@g.o>
38 -rxtx-2.1.7_pre17.ebuild, -rxtx-2.1.7.2.ebuild:
39
40
41
42 1.1 dev-java/rxtx/rxtx-2.1.7.2-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/rxtx/rxtx-2.1.7.2-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/rxtx/rxtx-2.1.7.2-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rxtx-2.1.7.2-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-java/rxtx/rxtx-2.1.7.2-r2.ebuild,v 1.1 2007/11/18 15:55:17 betelgeuse Exp $
52
53 inherit flag-o-matic toolchain-funcs versionator autotools java-pkg-2
54
55 MY_PV="$(replace_version_separator 2 -)"
56 MY_PV="$(replace_version_separator 3 r ${MY_PV})"
57 MY_P="${PN}-${MY_PV}"
58
59 DESCRIPTION="Native lib providing serial and parallel communication for Java"
60 HOMEPAGE="http://rxtx.org/"
61 SRC_URI="ftp://ftp.qbang.org/pub/rxtx/${MY_P}.zip"
62
63 LICENSE="LGPL-2"
64 SLOT="2"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="doc source lfd"
67
68 RDEPEND=">=virtual/jre-1.4"
69
70 DEPEND=">=virtual/jdk-1.4
71 app-arch/unzip
72 dev-java/ant-core
73 lfd? ( sys-apps/xinetd )
74 source? ( app-arch/zip )"
75
76 S="${WORKDIR}/${MY_P}"
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81
82 # some minor fixes
83 sed -i -e "s:UTS_RELEASE::g" configure.in
84 sed -i -e "s:|1.5\*:|1.5*|1.6*|1.7*:g" configure.in
85 sed -i -e "s:\(\$(JAVADOC)\):\1 -d api:g" Makefile.am
86
87 # some patches
88 epatch "${FILESDIR}/${MY_P}-lfd.diff"
89 epatch "${FILESDIR}/${MY_P}-nouts.diff"
90
91 # update autotools stuff
92 eautoreconf
93 elibtoolize
94 }
95
96 src_compile() {
97 econf $(use_enable lfd lockfile_server) || die "econf failed"
98 emake || die "emake failed"
99
100 if use lfd; then
101 # see INSTALL in src/ldf
102 $(tc-getCC) ${LDFLAGS} ${CFLAGS} src/lfd/lockdaemon.c -o src/lfd/in.lfd || die "compiling lfd failed"
103 fi
104
105 if use doc; then
106 emake docs || die "failed to emake docs"
107 fi
108
109 #Fix for src zip creation
110 if use source; then
111 mkdir -p src_with_pkg/gnu
112 ln -s ../../src src_with_pkg/gnu/io
113 fi
114 }
115
116 src_install() {
117 java-pkg_dojar RXTXcomm.jar
118 java-pkg_doso ${CHOST}/.libs/*.so
119
120 dodoc AUTHORS ChangeLog INSTALL PORTING TODO SerialPortInstructions.txt
121 dohtml RMISecurityManager.html
122
123 if use lfd; then
124 insinto /etc/xinetd.d
125 newins "${FILESDIR}/lockfiled.xinetd" lfd
126 dosbin src/lfd/in.lfd
127 dodoc src/lfd/LockFileServer.rfc
128 fi
129
130 use doc && java-pkg_dojavadoc api
131 use source && java-pkg_dosrc src_with_pkg/gnu
132 }
133
134 pkg_postinst() {
135 if use lfd; then
136 elog "Don't forget to enable the LockFileServer"
137 elog "daemon (lfd) in /etc/xinetd.d/lfd"
138 else
139 elog "RXTX uses UUCP style device-locks. You should"
140 elog "add every user who needs to access serial ports"
141 elog "to the 'uucp' group:"
142 elog
143 elog " usermod -aG uucp <user>"
144 fi
145 }
146
147
148
149 --
150 gentoo-commits@g.o mailing list