From: | "Alistair Bush (ali_bush)" <ali_bush@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-java/jnr-netdb: jnr-netdb-1.0.ebuild metadata.xml ChangeLog |
Date: | Fri, 04 Jun 2010 12:06:16 |
Message-Id: | 20100604120613.A82692CE14@corvid.gentoo.org |
1 | ali_bush 10/06/04 12:06:13 |
2 | |
3 | Added: jnr-netdb-1.0.ebuild metadata.xml ChangeLog |
4 | Log: |
5 | New Package. |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-java/jnr-netdb/jnr-netdb-1.0.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild?rev=1.1&content-type=text/plain |
13 | |
14 | Index: jnr-netdb-1.0.ebuild |
15 | =================================================================== |
16 | # Copyright 1999-2010 Gentoo Foundation |
17 | # Distributed under the terms of the GNU General Public License v2 |
18 | # $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild,v 1.1 2010/06/04 12:06:13 ali_bush Exp $ |
19 | |
20 | EAPI=3 |
21 | |
22 | JAVA_PKG_IUSE="doc source" |
23 | WANT_ANT_TASKS="ant-nodeps" |
24 | |
25 | inherit java-pkg-2 java-ant-2 |
26 | |
27 | DESCRIPTION="Network services database access for java." |
28 | HOMEPAGE="http://github.com/wmeissner/jnr-netdb" |
29 | SRC_URI="http://github.com/wmeissner/jnr-netdb/tarball/1.0 -> ${P}.tar.gz" |
30 | |
31 | LICENSE="LGPL-3" |
32 | SLOT="0" |
33 | KEYWORDS="~amd64" |
34 | |
35 | IUSE="" |
36 | |
37 | COMMON_DEP="dev-java/jaffl:0" |
38 | |
39 | RDEPEND=">=virtual/jre-1.5 |
40 | ${COMMON_DEP}" |
41 | DEPEND=">=virtual/jdk-1.5 |
42 | ${COMMON_DEP} |
43 | test? ( dev-java/ant-junit4 )" |
44 | |
45 | src_unpack() { |
46 | unpack ${A} |
47 | mv w* "${P}" || die |
48 | } |
49 | |
50 | src_prepare() { |
51 | mkdir -p lib |
52 | find . -iname 'junit*.jar' -delete |
53 | java-pkg_jar-from --into lib jaffl jaffl.jar |
54 | } |
55 | |
56 | EANT_EXTRA_ARGS="-Dreference.jaffl.jar=lib/jaffl.jar \ |
57 | -Dproject.jaffl=\"${S}\" \ |
58 | -D\"already.built.${S}\"=true" |
59 | |
60 | src_test() { |
61 | java-pkg_jar-from --build-only --into lib/junit_4 junit-4 \ |
62 | junit.jar junit-4.5.jar |
63 | |
64 | sed -i -e \ |
65 | "s_\${file.reference.jffi-complete.jar}_$(java-pkg_getjars --build-only --with-dependencies jaffl)_" \ |
66 | nbproject/project.properties |
67 | |
68 | ANT_TASKS="ant-junit4 ant-nodeps" eant test \ |
69 | ${EANT_EXTRA_ARGS} \ |
70 | -Djava.library.path="$(java-config -di jaffl)" |
71 | } |
72 | |
73 | src_install() { |
74 | java-pkg_dojar "dist/${PN}.jar" |
75 | use doc && java-pkg_dojavadoc dist/javadoc |
76 | use source && java-pkg_dosrc src/* |
77 | } |
78 | |
79 | |
80 | |
81 | 1.1 dev-java/jnr-netdb/metadata.xml |
82 | |
83 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/metadata.xml?rev=1.1&view=markup |
84 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/metadata.xml?rev=1.1&content-type=text/plain |
85 | |
86 | Index: metadata.xml |
87 | =================================================================== |
88 | <?xml version="1.0" encoding="UTF-8"?> |
89 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
90 | <pkgmetadata> |
91 | <herd>java</herd> |
92 | <longdescription lang="en"> |
93 | jnr-netdb is a java interface to getservbyname(3), getservbyport(3). |
94 | |
95 | It tries to use the native functions if possible, falling back to |
96 | parsing |
97 | /etc/services directly, and finally to an inbuilt table for use in |
98 | environments |
99 | where neither native code, nor filesystem access is possible. |
100 | </longdescription> |
101 | </pkgmetadata> |
102 | |
103 | |
104 | |
105 | |
106 | 1.1 dev-java/jnr-netdb/ChangeLog |
107 | |
108 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/ChangeLog?rev=1.1&view=markup |
109 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-netdb/ChangeLog?rev=1.1&content-type=text/plain |
110 | |
111 | Index: ChangeLog |
112 | =================================================================== |
113 | # ChangeLog for dev-java/jnr-netdb |
114 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
115 | # $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/ChangeLog,v 1.1 2010/06/04 12:06:13 ali_bush Exp $ |
116 | |
117 | *jnr-netdb-1.0 (05 Jun 2010) |
118 | |
119 | 05 Jun 2010; Alistair Bush <ali_bush@g.o> +jnr-netdb-1.0.ebuild, |
120 | +metadata.xml: |
121 | New Package. |