[pkg-java] r7068 - trunk/antlr3/debian
doko at alioth.debian.org
doko at alioth.debian.org
Mon Sep 29 21:33:43 UTC 2008
Author: doko
Date: 2008-09-29 21:33:42 +0000 (Mon, 29 Sep 2008)
New Revision: 7068
Modified:
trunk/antlr3/debian/changelog
trunk/antlr3/debian/control
trunk/antlr3/debian/rules
Log:
antlr3 (3.0.1+dfsg-3) unstable; urgency=low
* antlr3: Depend on default-jre-headless.
* Build an antlr3-gcj package.
-- Matthias Klose <doko at debian.org> Mon, 29 Sep 2008 23:18:19 +0200
Modified: trunk/antlr3/debian/changelog
===================================================================
--- trunk/antlr3/debian/changelog 2008-09-29 21:15:24 UTC (rev 7067)
+++ trunk/antlr3/debian/changelog 2008-09-29 21:33:42 UTC (rev 7068)
@@ -1,3 +1,10 @@
+antlr3 (3.0.1+dfsg-3) unstable; urgency=low
+
+ * antlr3: Depend on default-jre-headless.
+ * Build an antlr3-gcj package.
+
+ -- Matthias Klose <doko at debian.org> Mon, 29 Sep 2008 23:18:19 +0200
+
antlr3 (3.0.1+dfsg-2) unstable; urgency=low
* Add depends on libstringtemplate-java. Closes: #474719
Modified: trunk/antlr3/debian/control
===================================================================
--- trunk/antlr3/debian/control 2008-09-29 21:15:24 UTC (rev 7067)
+++ trunk/antlr3/debian/control 2008-09-29 21:33:42 UTC (rev 7068)
@@ -3,12 +3,13 @@
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Michael Koch <konqueror at gmx.de>
-Build-Depends: debhelper (>= 6), cdbs, java-gcj-compat-dev, ant-optional, antlr, libstringtemplate-java, junit
+Build-Depends: debhelper (>= 6), cdbs, default-jdk-builddep, ant-optional, antlr, libstringtemplate-java, junit
Standards-Version: 3.7.3
Package: antlr3
Architecture: all
-Depends: java-gcj-compat | java1-runtime | java2-runtime, libstringtemplate-java
+Depends: default-jre-headless | java1-runtime | java2-runtime, libstringtemplate-java
+Recommends: antlr3-gcj
Description: language tool for constructing recognizers, compilers etc
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is
a language tool that provides a framework for constructing recognizers,
@@ -23,3 +24,14 @@
graphical data files (e.g., PostScript, AutoCAD), text processing
files (e.g., HTML, SGML). ANTLR is designed to handle all of your
translation tasks.
+
+Package: antlr3-gcj
+Architecture: any
+Depends: antlr3 (>= ${Source-Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: language tool for constructing recognizers, compilers etc (native code)
+ ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is
+ a language tool that provides a framework for constructing recognizers,
+ compilers, and translators from grammatical descriptions containing C++
+ or Java actions [You can use PCCTS 1.xx to generate C-based parsers].
+ .
+ This package contains the natively compiled code for use by gij.
Modified: trunk/antlr3/debian/rules
===================================================================
--- trunk/antlr3/debian/rules 2008-09-29 21:15:24 UTC (rev 7067)
+++ trunk/antlr3/debian/rules 2008-09-29 21:33:42 UTC (rev 7068)
@@ -4,10 +4,25 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
-JAVA_HOME := /usr/lib/jvm/java-gcj
+include /usr/share/gcj/debian_defaults
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
+ with_native := yes
+endif
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
DEB_JARS := ant-antlr antlr junit
build/antlr3::
install -m 644 -D build/antlr.jar debian/antlr3/usr/share/java/antlr3-$(DEB_UPSTREAM_VERSION).jar
dh_link -pantlr3 /usr/share/java/antlr3-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/antlr3.jar
+
+binary-post-install/antlr3-gcj:: binary-post-install/antlr3
+ rm -rf debian/antlr3-gcj/usr/share/doc/antlr3-gcj
+ ln -s antlr3 \
+ debian/antlr3-gcj/usr/share/doc/antlr3-gcj
+ifeq ($(with_native),yes)
+ dh_nativejava -pantlr3-gcj
+endif
More information about the pkg-java-commits
mailing list