/[gentoo-x86]/dev-java/sat4j-pseudo/sat4j-pseudo-2.3.1.ebuild
Gentoo

Contents of /dev-java/sat4j-pseudo/sat4j-pseudo-2.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 27 10:33:38 2011 UTC (8 years ago) by fordfrog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
dev-java/sat4j-pseudo: fixed issues

(Portage version: 2.1.10.43/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/sat4j-pseudo/sat4j-pseudo-2.3.1.ebuild,v 1.1 2011/12/25 22:23:30 fordfrog Exp $
4
5 EAPI="2"
6
7 MY_PN="org.sat4j.pb"
8 MY_PV="20111030"
9 BUILD_PV="2.4"
10
11 JAVA_PKG_IUSE="doc source"
12 inherit java-pkg-2 java-ant-2
13
14 DESCRIPTION="Pseudo Boolean solvers"
15 HOMEPAGE="http://www.sat4j.org/"
16 SRC_URI="http://download.forge.objectweb.org/sat4j/sat4j-pb-v${MY_PV}.zip
17 http://download.forge.objectweb.org/sat4j/build-${BUILD_PV}.xml -> ${P}-build.xml"
18 LICENSE="LGPL-2.1"
19 SLOT="2.3"
20 KEYWORDS="~amd64 ~x86"
21 IUSE=""
22
23 CDEPEND="dev-java/sat4j-core:2.3"
24
25 RDEPEND="${CDEPEND}
26 >=virtual/jre-1.5"
27
28 DEPEND="${CDEPEND}
29 >=virtual/jdk-1.5"
30
31 S="${WORKDIR}"
32
33 src_unpack() {
34 unpack sat4j-pb-v${MY_PV}.zip
35 }
36
37 java_prepare() {
38 mkdir -p {core,pb}/{lib,src} || die
39
40 # Don't complain about missing javadoc stylesheet.
41 touch core/lib/stylesheet.css
42
43 # Grab build.xml. Don't fetch from CVS. Don't build core.
44 sed -e 's/depends="core"//g' \
45 -e 's/depends="prepare,getsource"/depends="prepare"/g' \
46 "${DISTDIR}/${P}-build.xml" > build.xml || die
47
48 # This is the version identifier used for custom builds.
49 echo 'CUSTOM' > core/src/sat4j.version || die
50
51 # Unpack manifest.
52 cd pb || die
53 jar xf "${WORKDIR}/${MY_PN}.jar" META-INF || die
54
55 # Unpack sources.
56 cd src || die
57 jar xf "${WORKDIR}/${MY_PN}-src.jar" || die
58 }
59
60 JAVA_ANT_REWRITE_CLASSPATH="yes"
61 EANT_BUILD_TARGET="pseudo"
62 EANT_GENTOO_CLASSPATH="sat4j-core-2.3"
63 EANT_DOC_TARGET="javadoc -Dmodule=pb -Dlib=pb/lib"
64
65 src_install() {
66 java-pkg_dojar dist/CUSTOM/${MY_PN}.jar
67 use doc && java-pkg_dojavadoc api/pb
68 use source && java-pkg_dosrc pb/src/org
69 }

  ViewVC Help
Powered by ViewVC 1.1.20