[cod-tools] 112/142: branches/single-source-build/ Including directives to build libcod-cif-parser-bison-perl.
Andrius Merkys
merkys-guest at moszumanska.debian.org
Mon Sep 25 13:44:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
merkys-guest pushed a commit to branch master
in repository cod-tools.
commit 5e3a17add2d0ff79c7c205f7a5b6d589eb4b2660
Author: Andrius Merkys <andrius.merkys at gmail.com>
Date: Mon May 22 06:12:08 2017 +0000
branches/single-source-build/
Including directives to build libcod-cif-parser-bison-perl.
git-svn-id: svn+ssh://saulius-grazulis.lt/home/andrius/svn-repositories/cod-deb-packaging/branches/single-source-build@112 26752c47-bcd6-4c9c-b022-347364b77eb5
---
debian/control | 11 +++++++++++
debian/rules | 8 ++++++++
2 files changed, 19 insertions(+)
diff --git a/debian/control b/debian/control
index 5f8ebeb..39e5351 100644
--- a/debian/control
+++ b/debian/control
@@ -30,6 +30,17 @@ Description: error-fixing CIF 1.1 parser
language. A CIF format file is represented by an array of data blocks,
where each data block is represented by a CIF struct.
+Package: libcod-cif-parser-bison-perl
+Section: perl
+Architecture: any
+Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends},
+ ${misc:Pre-Depends}, libcod-precision-perl, libcod-usermessage-perl
+Description: error-fixing CIF 1.1 parser - Perl bindings
+ COD::CIF::Parser:Bison, Perl bindings for Crystallographic Information
+ Format (CIF) parser, which is written in C language, and developed by
+ the Crystallography Open Database. A CIF format file is represented by
+ an array of data blocks, where each data block is represented by a hash.
+
Package: libcod-cif-parser-yapp-perl
Section: perl
Architecture: all
diff --git a/debian/rules b/debian/rules
index 6b51d4c..7206916 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,7 @@
#export DH_VERBOSE=1
SRC_DIR = src/externals/cexceptions
+vendorarch = $(shell perl -le 'use Config; print $$Config{vendorarch}')
vendorlib = $(shell perl -le 'use Config; print $$Config{vendorlib}')
%:
@@ -21,6 +22,7 @@ override_dh_auto_build:
${MAKE} PACKAGE=getoptions EXTRA_LIB_DIRS=../cexceptions/lib \
--directory src/externals/getoptions
${MAKE} --directory src/components/codcif
+ ${MAKE} --directory src/lib/perl5/COD/CIF/Parser/Bison
${MAKE} --directory src/lib/perl5/COD/CIF/Parser/Yapp
override_dh_auto_test:
@@ -35,6 +37,12 @@ override_dh_auto_install:
--directory src/externals/getoptions
${MAKE} install PREFIX=../../../debian/codcif/usr \
--directory src/components/codcif
+ mkdir -p debian/libcod-cif-parser-bison-perl/${vendorlib}/COD/CIF/Parser
+ mkdir -p debian/libcod-cif-parser-bison-perl/${vendorarch}/auto/COD/CIF/Parser/Bison
+ install --mode 640 src/lib/perl5/COD/CIF/Parser/Bison/lib/COD/CIF/Parser/Bison.pm \
+ debian/libcod-cif-parser-bison-perl/${vendorlib}/COD/CIF/Parser/
+ install --mode 640 src/lib/perl5/COD/CIF/Parser/Bison/lib/auto/COD/CIF/Parser/Bison/Bison.so \
+ debian/libcod-cif-parser-bison-perl/${vendorarch}/auto/COD/CIF/Parser/Bison/
mkdir -p debian/libcod-cif-parser-yapp-perl/${vendorlib}/COD/CIF/Parser
install --mode 640 src/lib/perl5/COD/CIF/Parser/Yapp/lib/COD/CIF/Parser/Yapp.pm \
debian/libcod-cif-parser-yapp-perl/${vendorlib}/COD/CIF/Parser/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cod-tools.git
More information about the debian-science-commits
mailing list