[Git][java-team/checker-framework][temp] Fix uscan

Olek Wojnar gitlab at salsa.debian.org
Sat May 16 05:39:50 BST 2020



Olek Wojnar pushed to branch temp at Debian Java Maintainers / checker-framework


Commits:
f197a45c by Olek Wojnar at 2020-05-16T00:39:38-04:00
Fix uscan

- - - - -


3 changed files:

- debian/README.source
- + debian/uupdate
- debian/watch


Changes:

=====================================
debian/README.source
=====================================
@@ -2,7 +2,12 @@ checker-framework for Debian
 ---------------------------
 
 This is currently packaged in an unconventional way to avoid the impact of
-Bug #926714. [1] Once Gradle >= 5.0.0 and jengelman-shadow >= 5.1.0 are
+Bug #926714. [1] To download newest upstream, run the following commands in
+the root of the unpacked sourcetree:
+uscan --safe --force-download
+debian/uupdate --upstream-version <version-number-no-suffix>
+
+Once Gradle >= 5.0.0 and jengelman-shadow >= 5.1.0 are
 packaged, this package should build normally from standard source.[2]
 
 The following will need to be changed:


=====================================
debian/uupdate
=====================================
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+NEW_VERSION="$2"
+PKG_NAME_FRONT="checker-qual-"
+PKG_NAME_BACK="-sources.jar"
+REPACK_SUFFIX="+repack1"
+FINAL_PKG_NAME="checker-framework"
+
+cd ..
+unzip -q ${PKG_NAME_FRONT}${NEW_VERSION}${PKG_NAME_BACK}
+rm ${PKG_NAME_FRONT}${NEW_VERSION}${PKG_NAME_BACK}
+
+mkdir -p ${FINAL_PKG_NAME}-${NEW_VERSION}/src/main/java
+mv org ${FINAL_PKG_NAME}-${NEW_VERSION}/src/main/java/
+mv ${PKG_NAME_FRONT}${NEW_VERSION}.pom ${FINAL_PKG_NAME}-${NEW_VERSION}/pom.xml
+rm -rf META-INF
+
+tar --xz -cf ${FINAL_PKG_NAME}_${NEW_VERSION}${REPACK_SUFFIX}.orig.tar.xz ${FINAL_PKG_NAME}-${NEW_VERSION}
+rm -rf ${FINAL_PKG_NAME}-${NEW_VERSION}
+cd -
+uupdate --no-symlink --upstream-version ${NEW_VERSION}${REPACK_SUFFIX} ${FINAL_PKG_NAME}_${NEW_VERSION}${REPACK_SUFFIX}.orig.tar.xz


=====================================
debian/watch
=====================================
@@ -3,9 +3,12 @@ version=4
 # PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
 #opts="pgpsigurlmangle=s%$%.sig%"
 
-opts="compression=xz, dversionmangle=s/\+repack\d*$//, repacksuffix=+repack1" \
+opts="dversionmangle=s/\+repack\d*$//" \
   https://repo1.maven.org/maven2/org/checkerframework/checker-qual/(\d[\d\.]+)/ \
-  checker-qual-([\d\.]+)-sources.jar debian uupdate
+  checker-qual-([\d\.]+)-sources.jar debian
+opts="dversionmangle=s/\+repack\d*$//, component=pom" \
+  https://repo1.maven.org/maven2/org/checkerframework/checker-qual/(\d[\d\.]+)/ \
+  checker-qual-([\d\.]+).pom same uupdate
 
 # Future watch line
 #opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%checker-framework-$1.tar.gz%" \



View it on GitLab: https://salsa.debian.org/java-team/checker-framework/-/commit/f197a45cff910f9fa3e826da595c1b43ac433395

-- 
View it on GitLab: https://salsa.debian.org/java-team/checker-framework/-/commit/f197a45cff910f9fa3e826da595c1b43ac433395
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20200516/a9ceda67/attachment.html>


More information about the pkg-java-commits mailing list