[giella-sme] 01/01: Post-build remove lib/ references; Use C.UTF-8 for building

Tino Didriksen tinodidriksen-guest at moszumanska.debian.org
Fri Feb 19 17:11:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

tinodidriksen-guest pushed a commit to branch master
in repository giella-sme.

commit c3c934883025fab3917c8f849ccab1e7f747a226
Author: Tino Didriksen <tino at didriksen.cc>
Date:   Fri Feb 19 17:11:13 2016 +0000

    Post-build remove lib/ references; Use C.UTF-8 for building
---
 debian/control |  1 -
 debian/rules   | 16 ++++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 3d9193a..aa044fa 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,6 @@ Build-Depends: autotools-dev,
                giella-core,
                hfst,
                libhfst42-dev,
-               locales,
                pkg-config (>= 0.21),
                python3 (>= 3.1),
                zip
diff --git a/debian/rules b/debian/rules
index b6ad133..3c8dd86 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
 
 #export DH_VERBOSE=1
 export DH_OPTIONS
+export LC_ALL=C.UTF-8
+
+PKGNAME=giella-sme
+TPATH=debian/$(PKGNAME)/usr
 
 %:
 	dh $@ --parallel --with autoreconf
@@ -10,9 +14,9 @@ export DH_OPTIONS
 override_dh_auto_configure:
 	dh_auto_configure -- --with-hfst --without-xfst --enable-spellers --enable-alignment --disable-minimised-spellers --enable-syntax --enable-analysers --enable-generators --enable-apertium
 
-override_dh_auto_build:
-	mkdir -p debian/tmp/locale/
-	localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
-	export LOCPATH=$(CURDIR)/debian/tmp/locale/ && \
-	export LC_ALL=en_US.UTF-8 && \
-	dh_auto_build
+override_dh_auto_install:
+	dh_auto_install
+	grep -v '^libdir=' $(TPATH)/share/pkgconfig/$(PKGNAME).pc > $(TPATH)/share/pkgconfig/$(PKGNAME).pc.new
+	mv -v $(TPATH)/share/pkgconfig/$(PKGNAME).pc.new $(TPATH)/share/pkgconfig/$(PKGNAME).pc
+	cp -av $(TPATH)/lib/*/voikko $(TPATH)/share/
+	rm -rfv $(TPATH)/lib

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/giella-sme.git



More information about the debian-science-commits mailing list