Build with debhelper instead of CDBS
Emmanuel Bourg
7 years ago
0 | |
project.name=ibatis
|
1 | |
class.dir=build
|
2 | |
source.dir=src
|
3 | |
jar=ibatis.jar
|
0 | 0 |
<?xml version="1.0" encoding="UTF-8"?>
|
1 | 1 |
|
2 | |
<project default="jar" name="${project.name}" basedir="..">
|
|
2 |
<project default="jar" name="ibatis" basedir="..">
|
3 | 3 |
|
4 | 4 |
<target name="clean">
|
5 | |
<delete dir="${class.dir}" quiet="true"/>
|
|
5 |
<delete dir="target" quiet="true"/>
|
6 | 6 |
</target>
|
7 | 7 |
|
8 | 8 |
<target name="compile" description="o Compile the source files">
|
9 | |
<mkdir dir="${class.dir}"/>
|
10 | |
<javac srcdir="${source.dir}" destdir="${class.dir}"
|
11 | |
debug="true" source="1.7" target="1.7"/>
|
12 | |
<copydir src="${source.dir}" dest="${class.dir}" includes="**/*.dtd"/>
|
|
9 |
<mkdir dir="target/classes"/>
|
|
10 |
<javac srcdir="src" destdir="target/classes" debug="true" source="1.7" target="1.7">
|
|
11 |
<classpath>
|
|
12 |
<pathelement path="/usr/share/java/cglib.jar"/>
|
|
13 |
<pathelement path="/usr/share/java/commons-dbcp.jar"/>
|
|
14 |
<pathelement path="/usr/share/java/commons-logging.jar"/>
|
|
15 |
<pathelement path="/usr/share/java/geronimo-jta-1.2-spec.jar"/>
|
|
16 |
<pathelement path="/usr/share/java/log4j-1.2.jar"/>
|
|
17 |
<pathelement path="/usr/share/java/oscache.jar"/>
|
|
18 |
</classpath>
|
|
19 |
</javac>
|
|
20 |
<copydir src="src" dest="target/classes" includes="**/*.dtd"/>
|
13 | 21 |
</target>
|
14 | 22 |
|
15 | 23 |
<target name="jar" description="o Create the jar" depends="compile">
|
16 | |
<jar jarfile="${jar}">
|
17 | |
<fileset dir="${class.dir}">
|
18 | |
<include name="**"/>
|
19 | |
</fileset>
|
|
24 |
<jar jarfile="target/ibatis.jar">
|
|
25 |
<fileset dir="target/classes"/>
|
20 | 26 |
</jar>
|
21 | 27 |
</target>
|
22 | 28 |
|
1 | 1 |
|
2 | 2 |
* Build with default-jdk instead of gcj-jdk
|
3 | 3 |
* Depend on libcglib-java instead of libcglib3-java
|
|
4 |
* Build with debhelper instead of CDBS
|
4 | 5 |
* Moved the package to Git
|
5 | 6 |
* Standards-Version updated to 3.9.8
|
6 | 7 |
|
3 | 3 |
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
|
4 | 4 |
Uploaders: Torsten Werner <twerner@debian.org>, Varun Hiremath <varun@debian.org>
|
5 | 5 |
Build-Depends: ant,
|
6 | |
cdbs,
|
7 | 6 |
debhelper (>= 9),
|
8 | 7 |
default-jdk,
|
9 | 8 |
libcglib-java,
|
|
12 | 11 |
libgeronimo-jta-1.2-spec-java,
|
13 | 12 |
liblog4j1.2-java,
|
14 | 13 |
liboscache-java,
|
15 | |
maven-debian-helper
|
|
14 |
maven-repo-helper
|
16 | 15 |
Standards-Version: 3.9.8
|
17 | 16 |
Homepage: http://ibatis.apache.org
|
18 | 17 |
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libibatis-java.git
|
|
0 |
/usr/share/java/ibatis-sqlmap.jar /usr/share/java/ibatis.jar
|
0 | |
debian/ibatis-sqlmap-2.3.4.726.pom
|
|
0 |
debian/ibatis-sqlmap-2.3.4.726.pom --java-lib --has-package-version --artifact=target/ibatis.jar
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | |
include /usr/share/cdbs/1/rules/debhelper.mk
|
3 | |
include /usr/share/cdbs/1/class/ant.mk
|
|
2 |
%:
|
|
3 |
dh $@ --buildsystem=ant --with maven-repo-helper
|
4 | 4 |
|
5 | |
JAVA_HOME := /usr/lib/jvm/default-java
|
6 | |
DEB_ANT_BUILDFILE := debian/build.xml
|
7 | |
DEB_JARS := cglib commons-dbcp commons-logging geronimo-jta-1.2-spec log4j-1.2 oscache
|
|
5 |
override_dh_auto_build:
|
|
6 |
dh_auto_build -- -f debian/build.xml
|
8 | 7 |
|
9 | |
install/libibatis-java::
|
10 | |
# compatibility symlink
|
11 | |
dh_link usr/share/java/ibatis-sqlmap.jar usr/share/java/ibatis.jar
|
12 | |
mh_installpoms -plibibatis-java --verbose
|
13 | |
mh_installjar -plibibatis-java debian/ibatis-sqlmap-*.pom ibatis.jar --java-lib
|
14 | |
|
15 | |
clean::
|
16 | |
mh_clean
|
17 | |
rm -f ibatis.jar
|
|
8 |
override_dh_auto_clean:
|
|
9 |
dh_auto_clean -- -f debian/build.xml
|
18 | 10 |
|
19 | 11 |
get-orig-source:
|
20 | |
uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --no-symlink
|
|
12 |
uscan --download-current-version --force-download --no-symlink
|