[pkg-java] r17053 - trunk/libmetadata-extractor-java/debian
Emmanuel Bourg
ebourg-guest at alioth.debian.org
Tue Jul 23 11:36:26 UTC 2013
Author: ebourg-guest
Date: 2013-07-23 11:36:26 +0000 (Tue, 23 Jul 2013)
New Revision: 17053
Added:
trunk/libmetadata-extractor-java/debian/orig-tar.sh
Modified:
trunk/libmetadata-extractor-java/debian/rules
trunk/libmetadata-extractor-java/debian/watch
Log:
debian/rules: Added a get-orig-source target
Added: trunk/libmetadata-extractor-java/debian/orig-tar.sh
===================================================================
--- trunk/libmetadata-extractor-java/debian/orig-tar.sh (rev 0)
+++ trunk/libmetadata-extractor-java/debian/orig-tar.sh 2013-07-23 11:36:26 UTC (rev 17053)
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../libmetadata-extractor-java_$VERSION.orig.tar.gz
+DIR=metadata-extractor-$VERSION
+
+git clone --branch 2.6.4 https://code.google.com/p/metadata-extractor $DIR
+rm -Rf $DIR/*.iml $DIR/.git* $DIR/Javadoc/* $DIR/Libraries/*
+
+tar -c -z -f $TAR $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir && echo "moved $TAR to $origDir"
+fi
Property changes on: trunk/libmetadata-extractor-java/debian/orig-tar.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/libmetadata-extractor-java/debian/rules
===================================================================
--- trunk/libmetadata-extractor-java/debian/rules 2013-07-23 09:08:20 UTC (rev 17052)
+++ trunk/libmetadata-extractor-java/debian/rules 2013-07-23 11:36:26 UTC (rev 17053)
@@ -5,15 +5,17 @@
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
-DEB_ANT_BUILD_TARGET := dist-binaries
+
+DEB_ANT_BUILD_TARGET := dist-binaries
DEB_INSTALL_CHANGELOGS_ALL := ChangeLog.txt
-LIBRARY := metadata-extractor
-DEB_UPSTREAM_VERSION := 2.3.1
+PACKAGE := metadata-extractor
clean::
rm -rf Releases Build api
install/libmetadata-extractor-java::
- install -m 644 -D Releases/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar ${CURDIR}/debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar
- dh_link usr/share/java/${LIBRARY}-${DEB_UPSTREAM_VERSION}.jar usr/share/java/${LIBRARY}.jar
+ install -m 644 -D Releases/${PACKAGE}-${DEB_UPSTREAM_VERSION}.jar ${CURDIR}/debian/lib${PACKAGE}-java/usr/share/java/${PACKAGE}-${DEB_UPSTREAM_VERSION}.jar
+ dh_link usr/share/java/${PACKAGE}-${DEB_UPSTREAM_VERSION}.jar usr/share/java/${PACKAGE}.jar
+get-orig-source::
+ uscan --force-download --download-version ${DEB_UPSTREAM_VERSION}
Modified: trunk/libmetadata-extractor-java/debian/watch
===================================================================
--- trunk/libmetadata-extractor-java/debian/watch 2013-07-23 09:08:20 UTC (rev 17052)
+++ trunk/libmetadata-extractor-java/debian/watch 2013-07-23 11:36:26 UTC (rev 17053)
@@ -1,3 +1,3 @@
version=3
opts=dversionmangle=s/\+dfsg$// \
-http://code.google.com/p/metadata-extractor/downloads/list .*/metadata-extractor-([\d\.]*)\.zip
+http://code.google.com/p/metadata-extractor/downloads/list .*/metadata-extractor-([\d\.]*)\.zip debian debian/orig-tar.sh
More information about the pkg-java-commits
mailing list