[SCM] ThePEG: Toolkit for High Energy Physics Event Generation branch, master, updated. upstream/1.8.0-1-gda04038

Lifeng Sun lifongsun at gmail.com
Wed Jun 6 06:46:07 UTC 2012


The following commit has been merged in the master branch:
commit da0403816c2ec75e27f6b130af1c96b8c0b9473f
Author: Lifeng Sun <lifongsun at gmail.com>
Date:   Tue Jun 5 18:11:30 2012 +0800

    Debianize.

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..50dd22a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+thepeg (1.8.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #636986)
+
+ -- Lifeng Sun <lifongsun at gmail.com>  Mon, 04 Jun 2012 11:11:51 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..de22327
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,86 @@
+Source: thepeg
+Section: science
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Lifeng Sun <lifongsun at gmail.com>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 8.0.0), autotools-dev, librivet-dev, libhepmc-dev, liblhapdf-dev, dh-autoreconf, libgsl0-dev, zlib1g-dev, chrpath, default-jdk, libreadline-dev, doxygen-latex
+Standards-Version: 3.9.3
+Homepage: http://projects.hepforge.org/thepeg/
+Vcs-Git: git://git.debian.org/git/debian-science/packages/thepeg.git
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/thepeg.git
+
+Package: thepeg
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Toolkit for High Energy Physics Event Generation
+ ThePEG is a general toolkit for implementing physics models of event
+ generation in high energy particle collisions. It defines a general
+ structure of event generation in terms of abstract base classes for e.g.
+ hard partonic matrix elements, parton showers and the decay of unstable
+ particles. Different models are then implemented by creating classes which
+ inherits from these base classes and implements sets of pre-defined virtual
+ functions.
+ .
+ This package provides program files of ThePEG.
+
+Package: thepeg-gui
+Architecture: all
+Depends: thepeg (>= ${binary:Version}), default-jre-headless | default-jre, ${misc:Depends}
+Description: Java GUI of ThePEG
+ ThePEG is a general toolkit for implementing physics models of event
+ generation in high energy particle collisions. It defines a general
+ structure of event generation in terms of abstract base classes for e.g.
+ hard partonic matrix elements, parton showers and the decay of unstable
+ particles. Different models are then implemented by creating classes which
+ inherits from these base classes and implements sets of pre-defined virtual
+ functions.
+ .
+ This package provides Java GUI of ThePEG.
+
+Package: libthepeg15
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Run-time library of ThePEG
+ ThePEG is a general toolkit for implementing physics models of event
+ generation in high energy particle collisions. It defines a general
+ structure of event generation in terms of abstract base classes for e.g.
+ hard partonic matrix elements, parton showers and the decay of unstable
+ particles. Different models are then implemented by creating classes which
+ inherits from these base classes and implements sets of pre-defined virtual
+ functions.
+ .
+ This package provides run-time library of ThePEG.
+
+Package: libthepeg-dev
+Section: libdevel
+Architecture: any
+Depends: libthepeg15 (= ${binary:Version}), ${misc:Depends}
+Description: Development library of ThePEG
+ ThePEG is a general toolkit for implementing physics models of event
+ generation in high energy particle collisions. It defines a general
+ structure of event generation in terms of abstract base classes for e.g.
+ hard partonic matrix elements, parton showers and the decay of unstable
+ particles. Different models are then implemented by creating classes which
+ inherits from these base classes and implements sets of pre-defined virtual
+ functions.
+ .
+ This package provides development library of ThePEG.
+
+Package: thepeg-reference
+Architecture: all
+Depends: ${misc:Depends}
+Description: Code reference of ThePEG
+ ThePEG is a general toolkit for implementing physics models of event
+ generation in high energy particle collisions. It defines a general
+ structure of event generation in terms of abstract base classes for e.g.
+ hard partonic matrix elements, parton showers and the decay of unstable
+ particles. Different models are then implemented by creating classes which
+ inherits from these base classes and implements sets of pre-defined virtual
+ functions.
+ .
+ This package provides code reference of ThePEG generated by Doxygen.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..57ce9be
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: thepeg
+Source: http://projects.hepforge.org/thepeg/
+
+Files: *
+Copyright: Leif Lonnblad <Leif.Lonnblad at thep.lu.se>
+           David Grellscheid <David.Grellscheid at durham.ac.uk>
+           Peter Richardson  <Peter.Richardson at durham.ac.uk>
+License: GPL-2.0+
+
+Files: Repository/Repository.cc
+Copyright: 2008 Ville Laurikari <vl at iki.fi>
+License:
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved.
+
+Files: debian/*
+Copyright: 2011 Lifeng Sun <lifongsun at gmail.com>
+License: GPL-2.0+
+
+License: GPL-2.0+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..d3fd28c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+GUIDELINES
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..4ac3542
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+set -e
+
+[ $# == 3 ]
+
+url="http://www.hepforge.org/archive/thepeg"
+ver="$2"
+
+pkgdir="thepeg-$ver.orig"
+pkg="thepeg_$ver.orig.tar.gz"
+
+uppkgdir="ThePEG-$ver"
+uppkg="ThePEG-$ver.tar.gz"
+
+[ ! -f "../$uppkg" ] && wget "$url/$uppkg" -O "../$uppkg"
+
+[ -d "$uppkgdir" ] && rm -rf "$uppkgdir"
+tar xf "../$uppkg"
+
+[ -d "$pkgdir" ] && rm -rf "$pkgdir"
+
+mv "$uppkgdir" "$pkgdir"
+rm -f "../$pkg"
+tar -zcf "../$pkg" "$pkgdir"
+
+rm -rf "$pkgdir"
diff --git a/debian/libthepeg-dev.install b/debian/libthepeg-dev.install
new file mode 100644
index 0000000..e8db8a7
--- /dev/null
+++ b/debian/libthepeg-dev.install
@@ -0,0 +1,2 @@
+usr/include
+usr/lib/*/libThePEG.so
diff --git a/debian/libthepeg15.install b/debian/libthepeg15.install
new file mode 100644
index 0000000..0e154f8
--- /dev/null
+++ b/debian/libthepeg15.install
@@ -0,0 +1,3 @@
+usr/lib/*/libThePEG.so.*
+usr/lib/*/ThePEG/*.so*
+usr/lib/*/ThePEG/ThePEGDefaults.rpo
diff --git a/debian/lintian-overrides/thepeg b/debian/lintian-overrides/thepeg
new file mode 100644
index 0000000..6d68c83
--- /dev/null
+++ b/debian/lintian-overrides/thepeg
@@ -0,0 +1,2 @@
+thepeg: binary-without-manpage usr/bin/runThePEG
+thepeg: binary-without-manpage usr/bin/setupThePEG
diff --git a/debian/lintian-overrides/thepeg-gui b/debian/lintian-overrides/thepeg-gui
new file mode 100644
index 0000000..3b28f6c
--- /dev/null
+++ b/debian/lintian-overrides/thepeg-gui
@@ -0,0 +1 @@
+thepeg-gui: binary-without-manpage usr/bin/thepeg
diff --git a/debian/patches/doxygen-exclude-debian-dir.patch b/debian/patches/doxygen-exclude-debian-dir.patch
new file mode 100644
index 0000000..5a1ec7c
--- /dev/null
+++ b/debian/patches/doxygen-exclude-debian-dir.patch
@@ -0,0 +1,11 @@
+--- a/Doc/refman.conf.in
++++ b/Doc/refman.conf.in
+@@ -611,7 +611,7 @@
+ # excluded from the INPUT source files. This way you can easily exclude a
+ # subdirectory from a directory tree whose root is specified with the INPUT tag.
+ 
+-EXCLUDE                = @top_builddir@/include
++EXCLUDE                = @top_builddir@/include @top_srcdir@/debian/
+ 
+ # The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+ # directories that are symbolic links (a Unix filesystem feature) are excluded
diff --git a/debian/patches/lhapdf-tests.patch b/debian/patches/lhapdf-tests.patch
new file mode 100644
index 0000000..c5977e2
--- /dev/null
+++ b/debian/patches/lhapdf-tests.patch
@@ -0,0 +1,43 @@
+Disable LHAPDF test, which requires additional PDF sets not shipped
+with LHAPDF package right now.
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -78,10 +78,6 @@
+ 	rm SimpleLEP.cmp
+ 	./setupThePEG --exitonerror -r ThePEGDefaults.rpo MultiLEP.in
+ 	time ./runThePEG -d 0 MultiLEP.run
+-if USELHAPDF
+-	./setupThePEG --exitonerror -r ThePEGDefaults.rpo TestLHAPDF.in
+-	time ./runThePEG -d 1 -x .libs/TestLHAPDF.so TestLHAPDF.run
+-endif
+ 
+ SimpleLEP.run: done-all-links setupThePEG ThePEGDefaults.rpo SimpleLEP.in
+ 	./setupThePEG --exitonerror -r ThePEGDefaults.rpo SimpleLEP.in
+@@ -95,14 +91,6 @@
+ MultiLEP.out: runThePEG MultiLEP.run
+ 	time ./runThePEG -d 0 MultiLEP.run
+ 
+-if USELHAPDF
+-TestLHAPDF.run: done-all-links setupThePEG ThePEGDefaults.rpo TestLHAPDF.in TestLHAPDF.la
+-	./setupThePEG --exitonerror -r ThePEGDefaults.rpo TestLHAPDF.in
+-
+-TestLHAPDF.out: runThePEG TestLHAPDF.run
+-	time ./runThePEG -d 1 -x .libs/TestLHAPDF.so TestLHAPDF.run
+-endif
+-
+ install-exec-hook:
+ 	cd $(DESTDIR)$(pkglibdir); \
+ 	rm -f setupThePEG-$(VERSION) runThePEG-$(VERSION); \
+@@ -133,11 +121,6 @@
+ diff SimpleLEP.out SimpleLEP.cmp; \
+ $(DESTDIR)$(bindir)/setupThePEG --exitonerror $(DESTDIR)$(pkgdatadir)/MultiLEP.in; \
+ $(DESTDIR)$(bindir)/runThePEG MultiLEP.run;
+-if USELHAPDF
+-	cd _test_thepeg_installation_; \
+-$(DESTDIR)$(bindir)/setupThePEG --exitonerror $(DESTDIR)$(pkgdatadir)/TestLHAPDF.in; \
+-$(DESTDIR)$(bindir)/runThePEG -x $(DESTDIR)$(pkglibdir)/TestLHAPDF.so TestLHAPDF.run
+-endif
+ 	rm -rf _test_thepeg_installation_
+ 
+ %.run: %.in done-all-links ThePEGDefaults.rpo
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ad561fb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+lhapdf-tests.patch
+thepeg-gui.patch
+doxygen-exclude-debian-dir.patch
diff --git a/debian/patches/thepeg-gui.patch b/debian/patches/thepeg-gui.patch
new file mode 100644
index 0000000..2141242
--- /dev/null
+++ b/debian/patches/thepeg-gui.patch
@@ -0,0 +1,20 @@
+--- a/java/thepeg.install
++++ b/java/thepeg.install
+@@ -6,9 +6,8 @@
+ ThePEG_CMD="${bindir}/setupThePEG"
+ if [ $# -gt 1 ]; then
+   if [ "$1" = "-v" ]; then
+-    VERSION="-$2"
+-    ThePEG_CMD="${pkglibdir}/setupThePEG${VERSION}"
+-    shift 2
++    echo "We do not support multiple version of ThePEG in Debian."
++    exit 1
+   fi
+ fi
+ 
+@@ -19,4 +18,4 @@
+ 
+ 
+ 
+-exec @java@ ${HEADLESS} -jar ${pkglibdir}/ThePEG.jar ${ThePEG_CMD} "$@"
++exec @java@ ${HEADLESS} -jar /usr/share/java/ThePEG.jar ${ThePEG_CMD} "$@"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..905e150
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,88 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CPPFLAGS :=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS   :=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS :=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS  :=$(shell dpkg-buildflags --get LDFLAGS)
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	MAKEFLAGS += -j$(NUMJOBS)
+else
+	NUMJOBS := 1
+endif
+
+export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS
+
+# package name
+PKGNAME=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f1))
+
+# current Debian package version
+DEBVER=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f2 | tr -d '()'))
+
+# current upstream version (remove any epoch and Debian release number)
+UPVER=$(shell echo $(DEBVER) | sed -e 's/-[^-]*$$//' -e 's/^[^:]*://')
+
+LIBPATH := /usr/lib/$(DEB_HOST_MULTIARCH)
+
+../$(PKGNAME)_$(UPVER).orig.tar.gz:
+	./debian/get-orig-source --upstream-version $(UPVER) $@
+
+get-orig-source: ../$(PKGNAME)_$(UPVER).orig.tar.gz
+
+configure-stamp:
+	dh_testdir
+	dh_autoreconf
+	dh_auto_configure -- \
+		--prefix=/usr \
+		--enable-unitchecks \
+		--with-javagui \
+		--with-rivet=/usr \
+		--with-hepmc=/usr \
+		--with-LHAPDF=$(LIBPATH) \
+		--libdir=$(LIBPATH)
+	touch $@
+
+build-arch: configure-stamp
+	dh_testdir
+	$(MAKE) -j$(NUMJOBS)
+
+build-indep: build-arch
+	dh_testdir
+	$(MAKE) html
+
+install: build-arch
+	dh_testdir
+	dh_prep
+	dh_auto_install
+	mv debian/tmp/$(LIBPATH)/ThePEG/lib* debian/tmp/$(LIBPATH)
+	chrpath -d debian/tmp/usr/bin/runThePEG
+	chrpath -d debian/tmp/usr/bin/setupThePEG
+	chrpath -d debian/tmp/$(LIBPATH)/ThePEG/HepMCAnalysis.so
+	chrpath -d debian/tmp/$(LIBPATH)/ThePEG/RivetAnalysis.so
+
+clean:
+	dh_testdir
+	dh_autoreconf_clean
+	dh_auto_clean
+	dh_clean
+
+build: install
+
+binary-indep: build-indep
+	dh $@
+
+binary-arch: build-arch
+	dh $@
+
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/thepeg-gui.install b/debian/thepeg-gui.install
new file mode 100644
index 0000000..6076dcd
--- /dev/null
+++ b/debian/thepeg-gui.install
@@ -0,0 +1,3 @@
+usr/bin/thepeg
+usr/lib/*/ThePEG/ThePEG.jar          usr/share/java
+debian/lintian-overrides/thepeg-gui  usr/share/lintian/overrides
diff --git a/debian/thepeg-reference.doc-base b/debian/thepeg-reference.doc-base
new file mode 100644
index 0000000..3a5ef79
--- /dev/null
+++ b/debian/thepeg-reference.doc-base
@@ -0,0 +1,9 @@
+Document: thepeg-reference
+Title: ThePEG Reference Manual
+Author: Leif Lönnblad, David Grellscheid, Simon Plätzer, Peter Richardson
+Abstract: ThePEG code reference generated by Doxygen.
+Section: Science/Physics
+
+Format: HTML
+Index: /usr/share/doc/thepeg-reference/html/index.html
+Files: /usr/share/doc/thepeg-reference/html/*.html
diff --git a/debian/thepeg-reference.install b/debian/thepeg-reference.install
new file mode 100644
index 0000000..801ffbc
--- /dev/null
+++ b/debian/thepeg-reference.install
@@ -0,0 +1 @@
+Doc/refman-html/* usr/share/doc/thepeg-reference/html
diff --git a/debian/thepeg.install b/debian/thepeg.install
new file mode 100644
index 0000000..6a053f1
--- /dev/null
+++ b/debian/thepeg.install
@@ -0,0 +1,4 @@
+usr/bin/runThePEG
+usr/bin/setupThePEG
+usr/share/ThePEG/*.in
+debian/lintian-overrides/thepeg  usr/share/lintian/overrides
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d1a249e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://www.hepforge.org/archive/thepeg/ ThePEG-(.*)\.tar\.gz debian ./debian/get-orig-source

-- 
ThePEG: Toolkit for High Energy Physics Event Generation



More information about the debian-science-commits mailing list