[SCM] herwig++: Multi-purpose event generator for high energy physics branch, master, updated. upstream/2.6.0-1-gc1f6db3

Lifeng Sun lifongsun at gmail.com
Wed Jun 6 18:49:03 UTC 2012


The following commit has been merged in the master branch:
commit c1f6db31165a8975ac5cfe202def0384df9793b7
Author: Lifeng Sun <lifongsun at gmail.com>
Date:   Wed Jun 6 22:13:42 2012 +0800

    Debianize.

diff --git a/debian/Herwig++.1 b/debian/Herwig++.1
new file mode 100644
index 0000000..0319998
--- /dev/null
+++ b/debian/Herwig++.1
@@ -0,0 +1,55 @@
+.TH HERWIG++ "1" "June 2012" "Herwig++" "User Commands"
+.SH NAME
+Herwig++ \- Multi\-purpose Monte\-Carlo event generator for particle physics.
+.SH SYNOPSIS
+.B Herwig++
+\fI(read|run) \fR[\fIOPTIONS\fR]... [\fIFILE\fR]
+.SH DESCRIPTION
+Herwig++ is a multi\-purpose Monte\-Carlo event generator for particle physics.
+See arXiv:0803.0883 for a detailed manual, or arXiv:1101.2599 for a more
+general description of the physics behind MC event generation.
+.PP
+One of the commands 'read' or 'run' is required:
+.IP
+read \- reads an input file and creates a run file,
+.IP
+run  \- reads a run file and generates events.
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print help and exit
+.TP
+\fB\-\-full\-help\fR
+Print help, including hidden options, and exit
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Print version and exit
+.PP
+Event generation options:
+.TP
+\fB\-N\fR, \fB\-\-numevents\fR=\fILONG\fR
+Number of events to generate.
+.TP
+\fB\-s\fR, \fB\-\-seed\fR=\fIINT\fR
+The random number generator seed.
+.TP
+\fB\-t\fR, \fB\-\-tag\fR=\fITAG\fR
+A tag to append to the run name.  (default=`')
+.TP
+\fB\-d\fR, \fB\-\-debug\fR=\fIINT\fR
+Set the ThePEG debug level.
+.TP
+\fB\-D\fR, \fB\-\-debug\-fpe\fR
+Enable floating point exceptions.  (default=off)
+.TP
+\fB\-q\fR, \fB\-\-quiet\fR
+Disable event counter.  (default=off)
+.PP
+Plugin library options:
+.TP
+\fB\-l\fR, \fB\-\-append\fR=\fIPATH\fR
+Append a search path for dynamically loaded libraries.
+.TP
+\fB\-L\fR, \fB\-\-prepend\fR=\fIPATH\fR
+Prepend a search path for dynamically loaded libraries.
+.SH AUTHOR
+This manual page was written by Lifeng Sun <lifongsun at gmail.com> for the Debian system (but may be used by others).
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d67438a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+herwig++ (2.6.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #636988)
+
+ -- Lifeng Sun <lifongsun at gmail.com>  Tue, 05 Jun 2012 22:21:21 +0800
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c1639f7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: herwig++
+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, dh-autoreconf, libthepeg-dev, libfastjet-dev, libfastjettools-dev, libfastjetplugins-dev, libboost-dev, libgsl0-dev, gfortran, chrpath
+Standards-Version: 3.9.3
+Homepage: http://projects.hepforge.org/herwig/
+Vcs-Git: git://git.debian.org/git/debian-science/packages/herwig++.git
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/herwig++.git
+
+Package: herwig++
+Architecture: any
+Depends: herwig++-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: Multi-purpose event generator for high energy physics
+ Herwig++ is a completely new event generator, written in C++. It is
+ built on the experience gained with the well-known event generator
+ HERWIG. The aim is to provide a multi purpose event generator with
+ similar or improved capabilities (like angular ordered parton
+ evolution and the cluster hadronization model).
+ .
+ This package provides program files and run-time libraries of
+ Herwig++.
+
+Package: herwig++-dev
+Architecture: any
+Depends: libthepeg-dev, herwig++ (= ${binary:Version}), ${misc:Depends}
+Description: Herwig++ development files
+ Herwig++ is a completely new event generator, written in C++. It is
+ built on the experience gained with the well-known event generator
+ HERWIG. The aim is to provide a multi purpose event generator with
+ similar or improved capabilities (like angular ordered parton
+ evolution and the cluster hadronization model).
+ .
+ Thie package provides Herwig++ development files.
+
+Package: herwig++-data
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: herwig++
+Description: Herwig++ Data
+ Herwig++ is a completely new event generator, written in C++. It is
+ built on the experience gained with the well-known event generator
+ HERWIG. The aim is to provide a multi purpose event generator with
+ similar or improved capabilities (like angular ordered parton
+ evolution and the cluster hadronization model).
+ .
+ This package provides data of Herwig++
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..aae47e9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,89 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: herwig++
+Source: http://projects.hepforge.org/herwig/
+
+Files: *
+Copyright: Ken Arnold
+	   Luca d'Errico
+	   Stefan Gieseke
+	   David Grellscheid
+	   Keith Hamilton
+	   Andreas Papaefstathiou
+	   Simon Plätzer
+	   Peter Richardson
+	   Christian Röhr
+	   Alex Schofield
+	   Mike Seymour
+	   Andrzej Siódmok
+	   Martin Stoll
+	   Bryan Webber
+	   David Winn
+License: GPL-2.0+
+
+Files: Hadronization/PartonSplitter.h
+       Hadronization/CluHadConfig.h
+       Hadronization/ClusterHadronizationHandler.h
+       Hadronization/PartonSplitter.h
+       Hadronization/LightClusterDecayer.h
+       Hadronization/ClusterDecayer.h
+       Hadronization/ClusterFinder.h
+Copyright: Philip Stephens
+	   Alberto Ribon
+License: GPL-2.0+
+
+Files: Hadronization/HadronSelector.h
+Copyright: Philip Stephens
+	   Alberto Ribon
+	   Peter Richardson
+License: GPL-2.0+
+
+Files: Hadronization/ClusterFissioner.h
+Copyright: Philip Stephens
+	   Alberto Ribon
+	   Stefan Gieseke
+License: GPL-2.0+
+
+Files: Hadronization/ColourReconnector.h
+Copyright: Alberto Ribon
+	   Christian Roehr
+License: GPL-2.0+
+
+Files: Looptools/util/solve-LU.F
+Copyright: 2004 Michael Rauch
+License: GPL-2.0+
+
+Files: Utilities/GSLBisection.h
+       PDF/HwRemDecayer.h
+       PDF/MPIPDF.h
+       PDF/MinBiasPDF.h
+       PDF/SatPDF.h
+       Shower/UEBase.h
+       UnderlyingEvent/MPIHandler.h
+       UnderlyingEvent/ProcessHandler.h
+Copyright: Manuel Bahr
+License: GPL-2.0+
+
+Files: src/herwigopts.h
+Copyright: Lorenzo Bettini
+License: GPL-2.0+
+
+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..3e2a778
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+set -e
+
+[ $# == 3 ]
+
+url="http://www.hepforge.org/archive/herwig"
+ver="$2"
+
+pkgdir="herwig++-$ver.orig"
+pkg="herwig++_$ver.orig.tar.gz"
+
+uppkgdir="Herwig++-$ver"
+uppkg="Herwig++-$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/herwig++-data.install b/debian/herwig++-data.install
new file mode 100644
index 0000000..cae5af7
--- /dev/null
+++ b/debian/herwig++-data.install
@@ -0,0 +1 @@
+usr/share/Herwig++/
diff --git a/debian/herwig++-dev.install b/debian/herwig++-dev.install
new file mode 100644
index 0000000..3dc1fbc
--- /dev/null
+++ b/debian/herwig++-dev.install
@@ -0,0 +1,2 @@
+usr/bin/herwig-config
+usr/include
diff --git a/debian/herwig++-dev.manpages b/debian/herwig++-dev.manpages
new file mode 100644
index 0000000..d4f4c57
--- /dev/null
+++ b/debian/herwig++-dev.manpages
@@ -0,0 +1 @@
+debian/herwig-config.1
diff --git a/debian/herwig++.install b/debian/herwig++.install
new file mode 100644
index 0000000..0ce0549
--- /dev/null
+++ b/debian/herwig++.install
@@ -0,0 +1,3 @@
+usr/bin/Herwig++
+usr/lib/*/Herwig++/*.so*
+usr/share/lintian/overrides
diff --git a/debian/herwig++.manpages b/debian/herwig++.manpages
new file mode 100644
index 0000000..b75fb3c
--- /dev/null
+++ b/debian/herwig++.manpages
@@ -0,0 +1 @@
+debian/Herwig++.1
diff --git a/debian/herwig-config.1 b/debian/herwig-config.1
new file mode 100644
index 0000000..00b101b
--- /dev/null
+++ b/debian/herwig-config.1
@@ -0,0 +1,33 @@
+.TH HERWIG-CONFIG "1" "June 2012" "Herwig++" "User Commands"
+.SH NAME
+herwig-config \- configuration tool for the Herwig++ event generator
+.SH SYNOPSIS
+.B herwig-config
+[\fIOption\fR]
+.SH OPTIONS
+.TP
+\fB\-\-help\fR | \fB\-h\fR
+show this help message
+.TP
+\fB\-\-prefix\fR
+show the installation prefix (cf. autoconf)
+.TP
+\fB\-\-datadir\fR
+show the path to the directory containing shared data
+.TP
+\fB\-\-libdir\fR
+show the path to the directory containing the libraries
+.TP
+\fB\-\-includedir\fR
+show the path to the directory containing the headers
+.TP
+\fB\-\-cppflags\fR
+show the required CPPFLAGS for building against Herwig++
+.TP
+\fB\-\-ldflags\fR
+show the required LDFLAGS for linking against Herwig++
+.TP
+\fB\-\-ldlibs\fR
+show the required libraries for linking against Herwig++
+.SH AUTHOR
+This manual page was written by Lifeng Sun <lifongsun at gmail.com> for the Debian system (but may be used by others).
diff --git a/debian/lintian-overrides/herwig++ b/debian/lintian-overrides/herwig++
new file mode 100644
index 0000000..e9b1d1b
--- /dev/null
+++ b/debian/lintian-overrides/herwig++
@@ -0,0 +1,2 @@
+herwig++: postinst-has-useless-call-to-ldconfig
+herwig++: postrm-has-useless-call-to-ldconfig
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..21f5402
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+thepeg-lib-path.patch
+siscone.patch
diff --git a/debian/patches/siscone.patch b/debian/patches/siscone.patch
new file mode 100644
index 0000000..2290365
--- /dev/null
+++ b/debian/patches/siscone.patch
@@ -0,0 +1,11 @@
+--- a/m4/fastjet.m4
++++ b/m4/fastjet.m4
+@@ -57,7 +57,7 @@
+    AC_MSG_CHECKING(FastJet)
+    if test "${fjok}" = "yes"; then
+       FASTJET_CXXFLAGS="`${fjconfig} --cxxflags`"
+-      FASTJET_LIBS="`${fjconfig} --libs --plugins`"
++      FASTJET_LIBS="`${fjconfig} --libs --plugins` -lsiscone_spherical -lsiscone"
+       LOAD_FASTJET="library HwLEPJetAnalysis.so"
+       CREATE_FASTJET="create"
+       AC_MSG_RESULT(yes)
diff --git a/debian/patches/thepeg-lib-path.patch b/debian/patches/thepeg-lib-path.patch
new file mode 100644
index 0000000..1923f29
--- /dev/null
+++ b/debian/patches/thepeg-lib-path.patch
@@ -0,0 +1,51 @@
+--- a/Contrib/Analysis2/m4/Analysis2.m4
++++ b/Contrib/Analysis2/m4/Analysis2.m4
+@@ -12,7 +12,7 @@
+ 	AC_MSG_ERROR([Cannot build Analysis2 without ThePEG. Please set --with-thepeg.])
+ fi
+ 
+-THEPEGLDFLAGS="-L${with_thepeg}/lib/ThePEG"
++THEPEGLDFLAGS="-L${with_thepeg}/lib/${DEB_HOST_MULTIARCH}/ThePEG"
+ THEPEGPATH="${with_thepeg}"
+ 
+ oldldflags="$LDFLAGS"
+--- a/m4/herwig.m4
++++ b/m4/herwig.m4
+@@ -64,7 +64,7 @@
+ 	AC_MSG_ERROR([Cannot build Herwig++ without ThePEG. Please set --with-thepeg.])
+ fi
+ 
+-THEPEGLDFLAGS="-L${with_thepeg}/lib/ThePEG"
++THEPEGLDFLAGS="-L${with_thepeg}/lib/${DEB_HOST_MULTIARCH}/ThePEG"
+ if test "${host_cpu}" == "x86_64" -a -e ${with_thepeg}/lib64/ThePEG/libThePEG.so ; then
+   THEPEGLDFLAGS="-L${with_thepeg}/lib64/ThePEG"
+ fi
+@@ -108,7 +108,7 @@
+ AC_MSG_CHECKING([for HepMCAnalysis.so in ThePEG])
+ 
+ 
+-if test -x "$THEPEGPATH/lib/ThePEG/HepMCAnalysis.so" ; then
++if test -x "$THEPEGPATH/lib/${DEB_HOST_MULTIARCH}/ThePEG/HepMCAnalysis.so" ; then
+      	CREATE_HEPMC="create"
+ 	AC_MSG_RESULT([found])
+ else
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -12,7 +12,7 @@
+ Herwig___CPPFLAGS = $(AM_CPPFLAGS) \
+ -DHERWIG_PKGDATADIR="\"$(pkgdatadir)\"" \
+ -DHERWIG_PKGLIBDIR="\"$(pkglibdir)\"" \
+--DTHEPEG_PKGLIBDIR="\"$(THEPEGPATH)/lib/ThePEG\""
++-DTHEPEG_PKGLIBDIR="\"$(THEPEGPATH)/lib/$(DEB_HOST_MULTIARCH)/ThePEG\""
+ bin_SCRIPTS = herwig-config
+ 
+ HELPERFILES = CMSSM40.1.1.slha RPV3.1.slha NMSSM.spc \
+@@ -131,7 +131,7 @@
+ 	$(VALGRIND) ./Herwig++ run -d1 -D -N5 LHC.run &> /tmp/valgrind-run.log
+ 
+ SETUPTHEPEG=$(THEPEGPATH)/bin/setupThePEG
+-THEPEGREPO=$(THEPEGPATH)/lib/ThePEG/ThePEGDefaults.rpo
++THEPEGREPO=$(THEPEGPATH)/lib/$(DEB_HOST_MULTIARCH)/ThePEG/ThePEGDefaults.rpo
+ 
+ install-data-hook:
+ 	@echo Creating repository
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1d1a903
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,91 @@
+#!/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 -- \
+		--with-thepeg=/usr \
+		--with-gsl=/usr \
+		--with-boost=/usr \
+		--with-fastjet=/usr \
+		--libdir=$(LIBPATH)
+	touch $@
+
+build-arch: configure-stamp
+	dh_testdir
+	$(MAKE) -j$(NUMJOBS)
+
+build-indep: build-arch
+	dh_testdir
+	# Doxygen never terminates even if we fix the doxygen configuration
+	# in ThePEG package.
+	# $(MAKE) html
+
+install: build-arch
+	dh_testdir
+	dh_prep
+	dh_auto_install
+	chrpath -d debian/tmp/$(LIBPATH)/Herwig++/HwMPI.so
+	mkdir -p debian/tmp/usr/share/lintian/overrides
+	cp -a debian/lintian-overrides/herwig++ \
+		debian/tmp/usr/share/lintian/overrides
+	rm -rf debian/tmp/usr/share/Herwig++/Doc
+	sed -i -e 's,/.*debian/tmp,,' \
+	    debian/tmp/usr/share/Herwig++/HerwigDefaults.rpo \
+	    debian/tmp/usr/share/Herwig++/defaults/PDF.in
+
+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/watch b/debian/watch
new file mode 100644
index 0000000..0c32d4b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://www.hepforge.org/archive/herwig/ Herwig\+\+-(.*)\.tar\.gz debian ./debian/get-orig-source

-- 
herwig++: Multi-purpose event generator for high energy physics



More information about the debian-science-commits mailing list