[SCM] Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. branch, master, updated. debian/2.6.0.dfsg-2-9-ga414009
Anton Gladky
gladky.anton at gmail.com
Fri Jul 6 18:29:07 UTC 2012
The following commit has been merged in the master branch:
commit a4140099f06f711fda980c2eef9d31569696d743
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Fri Jul 6 19:20:52 2012 +0200
Manage to compile java-gmsh
diff --git a/debian/control b/debian/control
index 92e3531..ed90b7b 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,8 @@ Build-Depends: debhelper (>= 8), cmake, gfortran, libgl1-mesa-dev,
python-dev (>= 2.6.6-3~), swig2.0,
chrpath, libann-dev,
libpetsc3.2-dev [!kfreebsd-amd64 !kfreebsd-i386 !armel !armhf !s390x],
- libslepc3.2-dev [!kfreebsd-amd64 !kfreebsd-i386 !armel !armhf !s390x]
+ libslepc3.2-dev [!kfreebsd-amd64 !kfreebsd-i386 !armel !armhf !s390x],
+ javahelper, default-jdk
Standards-Version: 3.9.3
DM-Upload-Allowed: yes
X-Python-Version: current
@@ -107,7 +108,7 @@ Description: Three-dimensional finite element mesh generator. Documentation
Package: python-gmsh
Section: python
-Architecture: all
+Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, mpi-default-bin,
python (>= 2.7), python (<<2.8)
Description: Three-dimensional finite element mesh generator. Documentation
@@ -129,7 +130,7 @@ Description: Three-dimensional finite element mesh generator. Documentation
Package: java-gmsh
Section: java
-Architecture: all
+Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, mpi-default-bin,
python (>= 2.7), python (<<2.8)
Description: Three-dimensional finite element mesh generator. Documentation
diff --git a/debian/java-gmsh.install b/debian/java-gmsh.install
index 4b114fc..8ae3f5d 100644
--- a/debian/java-gmsh.install
+++ b/debian/java-gmsh.install
@@ -1,2 +1 @@
-debian/build/wrappers/java/*.so gmshpy
-debian/build/wrappers/java/*.py gmshpy
+usr/lib/libWrap*.* usr/lib
diff --git a/debian/java-gmsh.jlibs b/debian/java-gmsh.jlibs
new file mode 100644
index 0000000..e49ba44
--- /dev/null
+++ b/debian/java-gmsh.jlibs
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*.jar
diff --git a/debian/rules b/debian/rules
index 029a352..d4005fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ JAVA_HOME=/usr/lib/jvm/default-java
# Add --with javahelper for java-wrappers
%:
- dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python2 --parallel
+ dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python2 --with javahelper --parallel
export OMPI_MCA_plm_rsh_agent=/bin/false #workaround to start MPI-applications in chroot
@@ -19,7 +19,7 @@ extra_flags += \
-DENABLE_METIS:BOOL=OFF \
-DENABLE_TAUCS:BOOL=OFF \
-DENABLE_OSMESA:BOOL=OFF \
--DENABLE_CGNS:BOOL=ON \
+-DENABLE_CGNS:BOOL=OFF \
-DENABLE_WRAP_JAVA:BOOL=ON \
-DCMAKE_INCLUDE_PATH:STRING="/usr/include/mpi" \
-DCMAKE_INSTALL_PREFIX:STRING="/usr" \
@@ -58,6 +58,7 @@ override_dh_auto_clean:
rm -f doc/texinfo/gmsh.html
rm -f doc/texinfo/gmsh.pdf
rm -f doc/texinfo/gmsh.info
+ jh_build --clean
override_dh_auto_configure:
dh_auto_configure -- $(extra_flags)
@@ -79,3 +80,8 @@ override_dh_auto_test:
cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -3 -o transfinite3d.stl
cd test-dir; ls -ln;
rm -rf test-dir
+
+override_dh_auto_install:
+ dh_auto_install
+ jh_installlibs -pjava-gmsh -v
+ jh_depends -pjava-gmsh -v
--
Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator.
More information about the debian-science-commits
mailing list