1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
POM_VERSION := 2.6.0
MAVEN_REPO := http://repo1.maven.org/maven2/
JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := xbean.jar
DEB_ANT_BUILDFILE := build.xml
DEB_JARS := ant-nodeps xmlbeans
XMLBEANS_TOOLS := dumpxsb inst2xsd scomp sdownload sfactor \
svalidate validate xpretty xsd2inst xsdtree xstc
install/libxmlbeans-java::
mh_installpoms -plibxmlbeans-java
mh_installjar -plibxmlbeans-java -l debian/poms/xmlbeans.xml build/lib/xbean.jar
mh_installjar -plibxmlbeans-java -l debian/poms/qname.xml build/lib/xmlbeans-qname.jar
mh_installjar -plibxmlbeans-java -l debian/poms/xpath.xml build/lib/xbean_xpath.jar
install/xmlbeans::
for TOOL in $(XMLBEANS_TOOLS); do \
dh_install -pxmlbeans bin/$$TOOL /usr/bin/; \
done
# Rename to fix filename conflict: See #578032
mv debian/xmlbeans/usr/bin/validate debian/xmlbeans/usr/bin/xsdvalidate
clean::
mh_clean
-rm -rf debian/tmp
get-orig-source:
uscan --force-download --rename
get-orig-pom:
wget -O debian/poms/xmlbeans.xml $(MAVEN_REPO)/org/apache/xmlbeans/xmlbeans/$(POM_VERSION)/xmlbeans-$(POM_VERSION).pom
wget -O debian/poms/qname.xml $(MAVEN_REPO)/org/apache/xmlbeans/xmlbeans-qname/$(POM_VERSION)/xmlbeans-qname-$(POM_VERSION).pom
wget -O debian/poms/xpath.xml $(MAVEN_REPO)/org/apache/xmlbeans/xmlbeans-xpath/$(POM_VERSION)/xmlbeans-xpath-$(POM_VERSION).pom
perl -p -i -e 's/<version>$(POM_VERSION)/<version>$(DEB_UPSTREAM_VERSION)/' debian/poms/*.xml
|