Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/sat4j-core: sat4j-core-2.3.1.ebuild ChangeLog
Date: Sun, 25 Dec 2011 22:14:23
Message-Id: 20111225221411.CF1032004B@flycatcher.gentoo.org
1 fordfrog 11/12/25 22:14:11
2
3 Modified: ChangeLog
4 Added: sat4j-core-2.3.1.ebuild
5 Log:
6 dev-java/sat4j-core: version bump
7
8 (Portage version: 2.1.10.43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 dev-java/sat4j-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sat4j-core/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sat4j-core/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sat4j-core/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/sat4j-core/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 17 Oct 2010 12:33:27 -0000 1.10
24 +++ ChangeLog 25 Dec 2011 22:14:11 -0000 1.11
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/sat4j-core
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sat4j-core/ChangeLog,v 1.10 2010/10/17 12:33:27 caster Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sat4j-core/ChangeLog,v 1.11 2011/12/25 22:14:11 fordfrog Exp $
31 +
32 +*sat4j-core-2.3.1 (25 Dec 2011)
33 +
34 + 25 Dec 2011; Miroslav Ć ulc <fordfrog@g.o> +sat4j-core-2.3.1.ebuild:
35 + Version bump
36
37 17 Oct 2010; Vlastimil Babka <caster@g.o> -sat4j-core-2.1.ebuild,
38 -sat4j-core-2.1.1.ebuild:
39
40
41
42 1.1 dev-java/sat4j-core/sat4j-core-2.3.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sat4j-core/sat4j-core-2.3.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sat4j-core/sat4j-core-2.3.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: sat4j-core-2.3.1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-java/sat4j-core/sat4j-core-2.3.1.ebuild,v 1.1 2011/12/25 22:14:11 fordfrog Exp $
52
53 EAPI="2"
54
55 MY_PN="org.${PN//-/.}"
56 MY_PV="20111030"
57 BUILD_PV="2.4"
58 JAVA_PKG_IUSE="doc source"
59
60 inherit java-pkg-2 java-ant-2
61
62 DESCRIPTION="Lightweight constraint programming with a SAT solver"
63 HOMEPAGE="http://www.sat4j.org/"
64 SRC_URI="http://download.forge.objectweb.org/sat4j/${PN}-v${MY_PV}.zip
65 http://download.forge.objectweb.org/sat4j/build-${BUILD_PV}.xml -> ${P}-build.xml"
66 LICENSE="LGPL-2.1"
67 SLOT="2"
68 KEYWORDS="~amd64 ~x86"
69 IUSE=""
70
71 RDEPEND=">=virtual/jre-1.5"
72 DEPEND=">=virtual/jdk-1.5"
73
74 S="${WORKDIR}"
75
76 src_unpack() {
77 unpack ${PN}-v${MY_PV}.zip
78 }
79
80 java_prepare() {
81 mkdir -p core/{lib,src} || die
82
83 # Don't complain about missing javadoc stylesheet.
84 touch core/lib/stylesheet.css
85
86 # Grab build.xml. Don't fetch from CVS. Version file is gone.
87 sed -e 's/depends="prepare,getsource"/depends="prepare"/g' \
88 -e '/<replace/d' \
89 "${DISTDIR}/${P}-build.xml" > build.xml || die
90
91 # Unpack manifest.
92 cd core || die
93 jar xf "${WORKDIR}/${MY_PN}.jar" META-INF || die
94
95 # Unpack sources.
96 cd src || die
97 jar xf "${WORKDIR}/${MY_PN}-src.jar" || die
98 }
99
100 EANT_BUILD_TARGET="core"
101 EANT_DOC_TARGET="javadoc -Dmodule=core -Dlib=core/lib"
102
103 src_install() {
104 java-pkg_dojar dist/CUSTOM/${MY_PN}.jar
105 use doc && java-pkg_dojavadoc api/core
106 use source && java-pkg_dosrc core/src/org
107 }