[f2j] 08/31: If we really want to rebuild PDF (IMHO ftpmaster only asks for the option to do so) we should do it correctly regarding Build-Depends and restoring original state after cleaning up. TODO: use dh-autoreconf to build twice in a row; need to test the final use for our Build-Depends for beast-mcmc Olivier, thanks for your initial work!
Andreas Tille
tille at debian.org
Fri Jan 29 15:35:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository f2j.
commit a3a11d800e65d4febcdd9af326e3285b519db6b3
Author: Andreas Tille <tille at debian.org>
Date: Tue Jan 24 22:33:19 2012 +0000
If we really want to rebuild PDF (IMHO ftpmaster only asks for the option to do so) we should do it correctly regarding Build-Depends and restoring original state after cleaning up.
TODO: use dh-autoreconf to build twice in a row; need to test the final use for our Build-Depends for beast-mcmc
Olivier, thanks for your initial work!
---
debian/control | 3 ++-
debian/docs | 2 +-
debian/patches/generate_doc | 49 ++++++++++++++++++++++++++++++++-------------
debian/rules | 8 ++++----
4 files changed, 42 insertions(+), 20 deletions(-)
diff --git a/debian/control b/debian/control
index e0063f5..ed04fea 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Olivier Sallou <olivier.sallou at irisa.fr>,
DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 8.0.0), default-jdk, bison, javahelper, texlive-binaries
+Build-Depends: debhelper (>= 8), default-jdk, bison, javahelper,
+ texlive-latex-base, texlive-latex-extra, texlive-fonts-recommended
Standards-Version: 3.9.2
Homepage: http://sourceforge.net/projects/f2j/
Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/f2j/trunk/
diff --git a/debian/docs b/debian/docs
index 58fbef8..d84be4d 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1 @@
-f2j_ug.pdf
+doc/f2j_ug.pdf
diff --git a/debian/patches/generate_doc b/debian/patches/generate_doc
index 4a3ccd8..b2408d1 100644
--- a/debian/patches/generate_doc
+++ b/debian/patches/generate_doc
@@ -1,21 +1,42 @@
Subject: fix document generation
-Author: Olivier Sallou <olivier.sallou at irisa.fr>
+Author: Olivier Sallou <olivier.sallou at irisa.fr>,
+ Andreas Tille <tille at debian.org>
Description: fix document generation makefile
+ * use pdflatex rather than ps2pdf
+ * make sure original pdf will be kept for restoring original source dir state
Last-Updated: 24/01/2012
---- a/doc/Makefile
-+++ b/doc/Makefile
-@@ -1,12 +1,12 @@
- LATEX=latex
+--- f2j-0.8.1.orig/doc/Makefile
++++ f2j-0.8.1/doc/Makefile
+@@ -1,24 +1,18 @@
+-LATEX=latex
++LATEX=pdflatex
BIBTEX=bibtex
--SOURCES = f2j_ug.tex title.tex
-+#SOURCES = f2j_ug.tex title.tex
+ SOURCES = f2j_ug.tex title.tex
- f2j_ug.ps: f2j_ug.dvi
+-f2j_ug.ps: f2j_ug.dvi
+-
+-f2j_ug.dvi: $(SOURCES)
++all:
++ if [ ! -e f2j_ug.orig.pdf ] ; then if [ -e f2j_ug.pdf ] ; then mv f2j_ug.pdf f2j_ug.orig.pdf ; else echo "Original file f2j_ug.pdf is missing" ; fi ; fi
+ $(LATEX) f2j_ug.tex
+-# $(BIBTEX) f2j_ug
+-# $(LATEX) f2j_ug.tex
+-# $(LATEX) f2j_ug.tex
+-
+-f2j_ug.ps: f2j_ug.dvi
+- dvips f2j_ug.dvi -o f2j_ug.ps
+-
+-f2j_ug.pdf: f2j_ug.ps
+- ps2pdf f2j_ug.ps
++ # $(BIBTEX) f2j_ug
++ # $(LATEX) f2j_ug.tex
++ $(LATEX) f2j_ug.tex
- f2j_ug.dvi: $(SOURCES)
-- $(LATEX) f2j_ug.tex
-+ $(LATEX) doc/f2j_ug.tex
- # $(BIBTEX) f2j_ug
- # $(LATEX) f2j_ug.tex
- # $(LATEX) f2j_ug.tex
+ almost_clean:
+ rm -f f2j_ug.dvi f2j_ug.ps *.aux *.log *.out
+
+ clean:
+- rm -f f2j_ug.dvi f2j_ug.ps f2j_ug.pdf *.aux *.log *.out
++ rm -f f2j_ug.dvi f2j_ug.ps *.aux *.log *.out *.bbl *.blg
++ if [ -e f2j_ug.orig.pdf ] ; then mv f2j_ug.orig.pdf f2j_ug.pdf ; fi
diff --git a/debian/rules b/debian/rules
index 6bd605a..175e2a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,10 +13,10 @@ override_dh_auto_install:
jh_installlibs --package=libf2j-java util/f2jutil.jar
-override_dh_auto_configure:
- dh_auto_configure
- make -f doc/Makefile f2j_ug.pdf
+override_dh_auto_build:
+ dh_auto_build
+ cd doc; make
override_dh_clean:
dh_clean
- make -f doc/Makefile clean
+ cd doc; make clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/f2j.git
More information about the pkg-java-commits
mailing list