Skip to content
Snippets Groups Projects
Commit 8c5e546c authored by Markus Koschany's avatar Markus Koschany
Browse files

Switch from cdbs to dh sequencer and from Ant to Maven build system.

parent 5445f261
No related branches found
No related tags found
No related merge requests found
ant.build.javac.source=1.6
ant.build.javac.target=1.6
verbose=false
debug=true
javadoc=api
......@@ -3,16 +3,12 @@ Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Emmanuel Bourg <ebourg@apache.org>
Build-Depends: ant,
ant-optional,
cdbs,
debhelper (>= 10),
Build-Depends: debhelper (>= 10),
default-jdk,
default-jdk-doc,
javahelper,
junit4,
libxmpcore-java,
maven-repo-helper
maven-debian-helper
Standards-Version: 4.0.0
Vcs-Git: https://anonscm.debian.org/git/pkg-java/libmetadata-extractor-java.git
Vcs-Browser: https://anonscm.debian.org/git/pkg-java/libmetadata-extractor-java.git
......
usr/share/java/metadata-extractor.jar xmpcore.jar
# List of POM files for the package
# Format of this file is:
# <path to pom file> [option]*
# where option can be:
# --ignore: ignore this POM and its artifact if any
# --ignore-pom: don't install the POM. To use on POM files that are created
# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
# --no-parent: remove the <parent> tag from the POM
# --package=<package>: an alternative package to use when installing this POM
# and its artifact
# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
# of the version for the package.
# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
# during a clean operation with mh_cleanpom or mh_installpom
# --artifact=<path>: path to the build artifact associated with this POM,
# it will be installed when using the command mh_install. [mh_install]
# --java-lib: install the jar into /usr/share/java to comply with Debian
# packaging guidelines
# --usj-name=<name>: name to use when installing the library in /usr/share/java
# --usj-version=<version>: version to use when installing the library in /usr/share/java
# --no-usj-versionless: don't install the versionless link in /usr/share/java
# --dest-jar=<path>: the destination for the real jar.
# It will be installed with mh_install. [mh_install]
# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
# Empty by default. [mh_install]
#
pom.xml --no-parent --has-package-version
# Include here properties to pass to Maven during the build.
# For example:
#maven.test.skip=true
#!/usr/bin/make -f
# debian/rules file for libmetadata-extractor-java (uses cdbs)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := dist-binaries javadoc
DEB_ANT_ARGS := -Dlib-xmp=/usr/share/java/xmpcore.jar -Dlib-junit=/usr/share/java/junit4.jar
DEB_JARS := ant-junit ant-junit4
PACKAGE := libmetadata-extractor-java
clean::
mh_clean
rm -rf Releases Build api TestReports
install/libmetadata-extractor-java::
mh_installpom -p${PACKAGE} --no-parent pom.xml
mh_installjar -p${PACKAGE} --java-lib pom.xml Releases/metadata-extractor-${DEB_UPSTREAM_VERSION}.jar
jh_classpath -p${PACKAGE}
%:
dh $@ --buildsystem=maven
get-orig-source::
uscan --force-download --download-version ${DEB_UPSTREAM_VERSION}
uscan --force-download --download-current-version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment