summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2013-01-09 19:18:34 +0000
committerKeri Harris <keri@gentoo.org>2013-01-09 19:18:34 +0000
commit036b9dc58d079a1e3d4e95c4702ee142583557e1 (patch)
treebe430ac40b031a6a90ea93588ec1fd1d202e5faa /dev-lang/gprolog
parentVersion bump. (diff)
downloadhistorical-036b9dc58d079a1e3d4e95c4702ee142583557e1.tar.gz
historical-036b9dc58d079a1e3d4e95c4702ee142583557e1.tar.bz2
historical-036b9dc58d079a1e3d4e95c4702ee142583557e1.zip
Version bump
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64 Manifest-Sign-Key: 0xA138F5ED
Diffstat (limited to 'dev-lang/gprolog')
-rw-r--r--dev-lang/gprolog/ChangeLog11
-rw-r--r--dev-lang/gprolog/Manifest18
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.2-ldflags.patch40
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.2-links.patch16
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.2-nodocs.patch30
-rw-r--r--dev-lang/gprolog/files/gprolog-1.4.2-txt-file.patch11
-rw-r--r--dev-lang/gprolog/gprolog-1.4.2.ebuild67
7 files changed, 183 insertions, 10 deletions
diff --git a/dev-lang/gprolog/ChangeLog b/dev-lang/gprolog/ChangeLog
index 50548d938e6f..6ba2494af191 100644
--- a/dev-lang/gprolog/ChangeLog
+++ b/dev-lang/gprolog/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/gprolog
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.61 2012/10/04 15:15:16 ottxor Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/ChangeLog,v 1.62 2013/01/09 19:18:26 keri Exp $
+
+*gprolog-1.4.2 (09 Jan 2013)
+
+ 09 Jan 2013; <keri@gentoo.org> +gprolog-1.4.2.ebuild,
+ +files/gprolog-1.4.2-ldflags.patch, +files/gprolog-1.4.2-links.patch,
+ +files/gprolog-1.4.2-nodocs.patch, +files/gprolog-1.4.2-txt-file.patch:
+ Version bump
04 Oct 2012; Christoph Junghans <ottxor@gentoo.org> gprolog-1.4.1.ebuild:
added prefix support (bug #433830)
diff --git a/dev-lang/gprolog/Manifest b/dev-lang/gprolog/Manifest
index ba118172f641..1efc76b5a920 100644
--- a/dev-lang/gprolog/Manifest
+++ b/dev-lang/gprolog/Manifest
@@ -10,20 +10,22 @@ AUX gprolog-1.4.1-ldflags.patch 2015 SHA256 66e82d8249209c9018f706b730bdf474b7ee
AUX gprolog-1.4.1-links.patch 488 SHA256 934df6a1c0396d0a868ad968c87666b9d9bcc9cc9f09dfaab3364cf81fe3daf7 SHA512 a514fb34d0420f9ffd37c1f51d843c864e025f9deaab9ca5f886e58569c6cba80c3a0c51087a766b2c20feb9b5c9dec6e1faefef4e274a211661f9eeb0ecffb1 WHIRLPOOL 90c55cedaef7184656965825897c1e783acf8cb87b90560c464e33f02f79d9d310ba011b5401231a76b8c5b7be68f334ed5ff7a26e3ff1b36c53a036c62ed51b
AUX gprolog-1.4.1-nodocs.patch 1117 SHA256 c32b7fbf84e3bfe520b822832995464b8dfdf1203b2f4e9a0045254e2326d037 SHA512 b49431abcd6da963902563930c104e92b0843278d86fcd9028e8b14b34c713790cc84983545df71983ee1f79c0d37615ef51c1e21fd1525817abbb43c78ab60a WHIRLPOOL 647dc3966254588ba9d11df08a0ca85bc356066a191b36c14d46f3087416c21b4b51b599cc090f9203d6761120f2c64039782a7edffe6c86f8c5cb9d63b2a9ee
AUX gprolog-1.4.1-txt-file.patch 578 SHA256 8a4416606ac6428c62968f1c39c41075e0fe74ac60e3db16094dead6e9fd5a83 SHA512 1e7e8ec6ca0e3ce1f59190e145125a018a1f99ccb068022121675863d46eef89663192d8c75b8e070c180891b3fa6a813f1c193895bee5b66977b6f92d705efa WHIRLPOOL 6a8aae49da0e900619826f8fdf704bc7999bdd2f7585bb39c5b135d496b56b9d50723e6a2b35ddde5fc6f2683c19732db4d9f6e906d68919045b3e69ce8b63eb
+AUX gprolog-1.4.2-ldflags.patch 2015 SHA256 b60d388795ce4538a9d49263208854d96fafa930f941fe67b8ee39b0d9e6b39f SHA512 abb7435798cb3bdcce831c9bb0891b77cdf1459fc0f04608fcd18c2228805c545711ec197d79217c0c710efeedcba0cdac4c8d91216bfa5a252ca1fb3f05ebe0 WHIRLPOOL 7b2172e1474e5adf55db0dcd87b841491e9e3adf4c9611e841496b2716c86e178b82fb3e209d4f4e62754159a5be46dd049b58dc4c47965151d465c32e47e396
+AUX gprolog-1.4.2-links.patch 562 SHA256 81edd32e950fe65eae2e4fdc2a8a5564ddda5841f369072936e85b757a95da4b SHA512 0631871ebe381dadcb5b76c09ec2175c922cb9544ea8c1fe3c737488d29c652ee9d15bef971484061c6bff7591b067537bd921eec06561db35f2f6bde6ecdf6b WHIRLPOOL 25148cf4b72ce4159e56754226939407f87e70324d4c7127dc251b723233ccc847ff260ba422ba588124e3e020d73bc963f6f6b360ebb56a8e155412b6fb16b8
+AUX gprolog-1.4.2-nodocs.patch 1191 SHA256 98bcae380f3b09f2bdc896834dbffba8cc9bea86e24a700d82c809c793ca0fef SHA512 14e6778a88fbaf0b063259f4e74f9546097d27818219fae98c103087b315937ccf42df965af6eaddcc762622b2324e1fe393a98e5233bbd396a7cfd787e3818d WHIRLPOOL c9e44a850f907ea4e8aa577870ac8464a32690118d838ce2c313ca993c394e9f297fe83526180abca5a903278a5ccf86c534cf590b077b49d8ec3fb61127d618
+AUX gprolog-1.4.2-txt-file.patch 652 SHA256 23dddf5041651a7b0a6383249af7375bbec3280df73522054c1e289f8c9b7a21 SHA512 fb1b110820cff846f2999d4c12cf44c8a0be54588d76c4d677a91bb8a78dc1f815d5a35cbe947a29861cfd742ac1a156dab239c18f8e7a1c33eb92b125b3d885 WHIRLPOOL d5dc4d787b401d0a20eea354af1669afd3f1457575f4b98ed64c9bd7d1e8270b7b9b7c59c9ec4b83a34a8c0fb229b3bedd3d221833cf6e389a9e29bed24642d9
DIST gprolog-1.4.0.tar.gz 3239624 SHA256 804a2fdd980d8ed9ba0b5e45e24aaad5e4ca08f67a532ea2b3813b9f8d99c6d0 SHA512 2e541b311ee9c156c1d6f60f3697267bd9959ebc41ab5a73519485c34e8f7ebe1cdda06c1c9e0c10d88a30d31ddc8e59838b1cfeb6dba3057a712a2547d7eead WHIRLPOOL bd016deec281414d92c12295df59a86be4f07ecb5c995f34bacc8986be61819f24d440775092e6f93116a3f084059788360b1e910e9d48f344a6cff2c997d309
DIST gprolog-1.4.1.tar.gz 3273781 SHA256 e2819ed9c426138d3191e4d97ae5121cf97e132eecf102400f87f1e372a05b72 SHA512 fb7cc456de4a4dcce77ce94cdfe58dad0f21f1d71907b8e2247353e9910e1c62c7d49f407c60094ce4ecd039005da2039fa683997273b67919a7e515d0f6fe71 WHIRLPOOL 345561d76f10c74b1ed171d0626f5e95e797fd40dc6b167554c1969b7eb13200ab778b46d72754eb8b2e34fc14b441c54a3b6d1b2bea0ea3fe5d04043db7a0ca
+DIST gprolog-1.4.2.tar.gz 3358528 SHA256 d5856a5b6a0f237db4b09264861898ef5b55339dd2798cc4333190cf9f604578 SHA512 b93eb522e1aacac08b347b84d0d82d146ae29b7331754f71f02a89bfab3038a1f5c40dbc936118edfddb8ea07e44e3283b2130756d2027b0a90467a45506dc84 WHIRLPOOL f5b82c68208ad85640f48b1910e40ae774788c11e114af8258911b6a8b2d3df3f36a49e03d79a5393e331ab843d52ee7eecbdf0b90986e0dbce2ea1a668e9ef9
EBUILD gprolog-1.4.0.ebuild 1741 SHA256 97ef7743d3afc9dd2d248aa26679f69c7621a760ff80bcff2a5da74ae74ca23d SHA512 41167c732868ff2dae63bbe00afa69df21556206381585c016394d31e7b22219f0845171bac43ab34a3c0a8df9065a208baae90444381993620ce5cc4dbd13c8 WHIRLPOOL 03ee755bc436436020181842395997edf5e650f5a838e3d73ecfeecdbe2fcab085ba0ae5b34229bc3cc2bdce1840ed784a90a0ff34250e64c946a27fe950a3a0
EBUILD gprolog-1.4.1.ebuild 1619 SHA256 13624b663c1dc720846870520f02f73391ff06e0b292675cba08f1da285c844d SHA512 dea87a9c9de029d89ec81ea8f804bc103c49dccf947cb3dce0ceded86eab157b5fa75d8d9b9ef75e64e93fae4fc8fd8bd15e792c087042b3d82719c9a2c6a553 WHIRLPOOL 20053af8b6aa998e986c654db5a5f46c046da9c10507bc2df65171d8764d42119d08c810f4c6139ad0bbefe1034a80361d94434eb8c5d5578bf83a78fea404fa
-MISC ChangeLog 8370 SHA256 61860d3b1d3929bd03e68d6f317434f9dd53e753eb952ea42546cb498784d661 SHA512 a80f91c19706347386a0370fadf464cfe6e767df52e84a56b59fe24b75d5f88092bdc063d31b1d38b853e25ffdf7bf921e2e3b8717d9a9d542bbb3db8e356e9b WHIRLPOOL c5b8ac8df217c052e912723bb69ad9424c68022c76eb8a3357106b9e6ae2456f77cb35de8ef8bcf939feb722a2e9e8359541abcc80a76d61400fd36f8c23d4e8
+EBUILD gprolog-1.4.2.ebuild 1619 SHA256 77649f1e7289717ce58ca0c4d6c2c3c1fdb9405ea67b12a275e820bc2123758a SHA512 3ec241e5b1cbd08e44faf0fceac98169c8603433d4699435fef536330f855388002b243983965b2bdd8b63f92c788e8d0603f76f2365294ca65c4a2f9dca1087 WHIRLPOOL 4e1b404fd38343b0361a59650a77cbae96df09064607cacd4f0a6a16e06eea05b1141091f01e722f5631827b1876baa175bd4f851b830c2d14a44cf359c9bc1e
+MISC ChangeLog 8616 SHA256 7cec0a2655093b7029da1db016e6d646acf50234c1c407bfdadcbf4533fa1f42 SHA512 2f96a3018d3f0ead7eb49371d0ec0c9152938e35e5995cec74e811e2e83e930d1fef4df26f4d34422b242a43a48a102f0ae56ac0a4d98344bae6dc8bba9d0eb9 WHIRLPOOL 91469dbf3d5d98f7fc2d1dad97802c011e1a6affeed240f454b92956ae86f7a4cc7849eba7159f7dc3121f228a578a707f05f02722f63d11d56796799be435b0
MISC metadata.xml 159 SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba SHA512 532979c6de159980035c56482b05558c2b59c97dc99d83903988d8a535512e209110273f7123fcb0b1ce8aeed34b368fc7a309e68f3a6b510296d547b0134137 WHIRLPOOL 24bf1d6894c0450424190af0e967c7f947cfa9a3a4b6cbe29c0a54ea4f857e252fb6ee5d14b3503b52f066dca47b4b7add3b7a57c5391de468ea49d589a2fe37
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQbagFAAoJEOeBhlrCAAWGdXkH/A2v2pSNhFcNZXo8jGYgfLrJ
-3D+YCYrFFu82BCfYA1A3F2OH5uvdX6xaQt8i5Me44MMjMMe2gYR5XUpM5trNIzTb
-IFn0L24yzZSa+7VajlrnQw2f8rhLK/fHqQYQ2KqdRpfjd6bctPQGf3MQC3x5e+CV
-+nTwO+crn34sIWbUf2JaV9hYIgLNFEow/26CCEL6dWRdzwoobEd1UnqwOpZUXuVe
-MG3a4ev81uiepvZBLjWW05a32kfOv2dnMXP3DommOkJrNqrcVyiNGIh6eG/oWPj2
-FE65aQgXh3AgZfKk9egA4PDm7WW8AKBL1i47XFA6euhCFfTCDq0WPr1MPFkWAeM=
-=HQw2
+iEYEAREIAAYFAlDtwkEACgkQrwS/tqE49e0DtACfb03SiuPChnEdUF8i9kRGkCyD
+B+AAn2foYwGMoOit2uoHfuNjxuMaQ4HY
+=66yE
-----END PGP SIGNATURE-----
diff --git a/dev-lang/gprolog/files/gprolog-1.4.2-ldflags.patch b/dev-lang/gprolog/files/gprolog-1.4.2-ldflags.patch
new file mode 100644
index 000000000000..b477d79837bb
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.2-ldflags.patch
@@ -0,0 +1,40 @@
+diff -ur gprolog-1.4.2.orig/src/Ma2Asm/Makefile.in gprolog-1.4.2/src/Ma2Asm/Makefile.in
+--- gprolog-1.4.2.orig/src/Ma2Asm/Makefile.in 2012-01-10 18:24:39.000000000 +0100
++++ gprolog-1.4.2/src/Ma2Asm/Makefile.in 2013-01-09 20:07:58.000000000 +0100
+@@ -19,7 +19,7 @@
+
+ ma2asm@EXE_SUFFIX@: ma2asm@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@ \
+ ma2asm_inst@OBJ_SUFFIX@ ma2asm_inst.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@ma2asm@EXE_SUFFIX@ ma2asm@OBJ_SUFFIX@ ma2asm_inst@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@
++ $(CC) $(LDFLAGS) @CC_EXE_NAME_OPT@ma2asm@EXE_SUFFIX@ ma2asm@OBJ_SUFFIX@ ma2asm_inst@OBJ_SUFFIX@ ma_parser@OBJ_SUFFIX@
+
+
+ clean:
+diff -ur gprolog-1.4.2.orig/src/TopComp/Makefile.in gprolog-1.4.2/src/TopComp/Makefile.in
+--- gprolog-1.4.2.orig/src/TopComp/Makefile.in 2012-01-10 18:24:39.000000000 +0100
++++ gprolog-1.4.2/src/TopComp/Makefile.in 2013-01-09 20:07:58.000000000 +0100
+@@ -15,10 +15,10 @@
+
+ $(GPLC)@EXE_SUFFIX@: top_comp.c copying.c ../EnginePl/wam_regs.h \
+ ../EnginePl/gp_config.h ../EnginePl/machine1.c decode_hexa.c copying.c prolog_path.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@$(GPLC)@EXE_SUFFIX@ top_comp.c $(LDLIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) @CC_EXE_NAME_OPT@$(GPLC)@EXE_SUFFIX@ top_comp.c $(LDLIBS)
+
+ $(HEXGPLC)@EXE_SUFFIX@: hexfilter.c decode_hexa.c
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@$(HEXGPLC)@EXE_SUFFIX@ hexfilter.c
++ $(CC) $(LDFLAGS) $(CFLAGS) @CC_EXE_NAME_OPT@$(HEXGPLC)@EXE_SUFFIX@ hexfilter.c
+
+
+
+diff -ur gprolog-1.4.2.orig/src/Wam2Ma/Makefile.in gprolog-1.4.2/src/Wam2Ma/Makefile.in
+--- gprolog-1.4.2.orig/src/Wam2Ma/Makefile.in 2012-01-10 18:24:38.000000000 +0100
++++ gprolog-1.4.2/src/Wam2Ma/Makefile.in 2013-01-09 20:07:58.000000000 +0100
+@@ -12,7 +12,7 @@
+ $(CC) $(CFLAGS) -c wam2ma.c
+
+ wam2ma@EXE_SUFFIX@: wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
+- $(CC) $(CFLAGS) @CC_EXE_NAME_OPT@wam2ma@EXE_SUFFIX@ wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
++ $(CC) $(LDFLAGS) @CC_EXE_NAME_OPT@wam2ma@EXE_SUFFIX@ wam2ma@OBJ_SUFFIX@ wam_parser@OBJ_SUFFIX@
+
+
+ clean:
diff --git a/dev-lang/gprolog/files/gprolog-1.4.2-links.patch b/dev-lang/gprolog/files/gprolog-1.4.2-links.patch
new file mode 100644
index 000000000000..9b25a8d53085
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.2-links.patch
@@ -0,0 +1,16 @@
+diff -ur gprolog-1.4.2.orig/src/Makefile.in gprolog-1.4.2/src/Makefile.in
+--- gprolog-1.4.2.orig/src/Makefile.in 2012-10-02 17:55:53.000000000 +0200
++++ gprolog-1.4.2/src/Makefile.in 2013-01-09 20:09:59.000000000 +0100
+@@ -81,10 +81,10 @@
+
+ # --- Links --- #
+
+-install-links: uninstall-links
++install-links:
+ if test $(LINKS_DIR) != none; then \
+ ./mkinstalldirs $(LINKS_DIR); \
+- (cd $(LINKS_DIR) ; $(LN_S) $(INSTALL_DIR)/bin/* .); \
++ (cd $(LINKS_DIR); for i in $(BIN_FILES); do $(LN_S) $(INSTALL_DIR)/bin/$$i .; done); \
+ fi
+
+ uninstall-links:
diff --git a/dev-lang/gprolog/files/gprolog-1.4.2-nodocs.patch b/dev-lang/gprolog/files/gprolog-1.4.2-nodocs.patch
new file mode 100644
index 000000000000..12e0c50aca68
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.2-nodocs.patch
@@ -0,0 +1,30 @@
+diff -ur gprolog-1.4.2.orig/src/Makefile.in gprolog-1.4.2/src/Makefile.in
+--- gprolog-1.4.2.orig/src/Makefile.in 2012-10-02 17:55:53.000000000 +0200
++++ gprolog-1.4.2/src/Makefile.in 2013-01-09 20:11:14.000000000 +0100
+@@ -97,7 +97,7 @@
+ # --- Documentation --- #
+
+ install-doc:
+- if test $(DOC_DIR) != none; then \
++ if test $(DOC_DIR) != $(DESTDIR)none; then \
+ ./mkinstalldirs $(DOC_DIR); \
+ (F=`cd ../doc; echo $(DOC_FILES)`; \
+ for i in $$F; do $(INSTALL_DATA) ../doc/$$i $(DOC_DIR); done); \
+@@ -113,7 +113,7 @@
+ # --- HTML --- #
+
+ install-html:
+- if test $(HTML_DIR) != none; then \
++ if test $(HTML_DIR) != $(DESTDIR)none; then \
+ ./mkinstalldirs $(HTML_DIR); \
+ (F=`cd ../doc/html_node; echo $(HTML_FILES)`; \
+ for i in $$F; do $(INSTALL_DATA) ../doc/html_node/$$i $(HTML_DIR); done); \
+@@ -129,7 +129,7 @@
+ # --- Examples --- #
+
+ install-examples:
+- if test $(EXAMPLES_DIR) != none; then \
++ if test $(EXAMPLES_DIR) != $(DESTDIR)none; then \
+ ./mkinstalldirs $(EXAMPLES_DIR)/ExamplesPl; \
+ (F=`cd ../examples/ExamplesPl; echo $(EXPL_FILES)`; \
+ for i in $$F; do $(INSTALL_DATA) ../examples/ExamplesPl/$$i $(EXAMPLES_DIR)/ExamplesPl; done); \
diff --git a/dev-lang/gprolog/files/gprolog-1.4.2-txt-file.patch b/dev-lang/gprolog/files/gprolog-1.4.2-txt-file.patch
new file mode 100644
index 000000000000..22ce20bec340
--- /dev/null
+++ b/dev-lang/gprolog/files/gprolog-1.4.2-txt-file.patch
@@ -0,0 +1,11 @@
+diff -ur gprolog-1.4.2.orig/src/Makefile.in gprolog-1.4.2/src/Makefile.in
+--- gprolog-1.4.2.orig/src/Makefile.in 2012-10-02 17:55:53.000000000 +0200
++++ gprolog-1.4.2/src/Makefile.in 2013-01-09 20:12:15.000000000 +0100
+@@ -60,7 +60,6 @@
+ install-system:
+ ./mkinstalldirs $(INSTALL_DIR) $(INSTALL_DIR)/bin \
+ $(INSTALL_DIR)/include $(INSTALL_DIR)/lib
+- for i in $(TXT_FILES); do $(INSTALL_DATA) ../$$i $(INSTALL_DIR); done
+ for i in $(BIN_FILES); do $(INSTALL_PROGRAM) */$$i $(INSTALL_DIR)/bin; done
+ for i in $(OBJ_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
+ for i in $(LIB_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
diff --git a/dev-lang/gprolog/gprolog-1.4.2.ebuild b/dev-lang/gprolog/gprolog-1.4.2.ebuild
new file mode 100644
index 000000000000..ffe8856f6bb6
--- /dev/null
+++ b/dev-lang/gprolog/gprolog-1.4.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.4.2.ebuild,v 1.1 2013/01/09 19:18:26 keri Exp $
+
+EAPI=4
+
+inherit eutils flag-o-matic multilib
+
+DESCRIPTION="GNU Prolog is a native Prolog compiler with constraint solving over finite domains (FD)"
+HOMEPAGE="http://www.gprolog.org/"
+SRC_URI="mirror://gnu/gprolog/${P}.tar.gz"
+S="${WORKDIR}"/${P}
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+IUSE="debug doc examples"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ epatch "${FILESDIR}"/${P}-links.patch
+ epatch "${FILESDIR}"/${P}-nodocs.patch
+ epatch "${FILESDIR}"/${P}-txt-file.patch
+}
+
+src_configure() {
+ CFLAGS_MACHINE="`get-flag -march` `get-flag -mcpu` `get-flag -mtune`"
+
+ append-flags -fno-strict-aliasing
+ use debug && append-flags -DDEBUG
+
+ if gcc-specs-pie ; then
+ # gplc generates its own native ASM; disable PIE
+ append-ldflags -nopie
+ fi
+
+ cd "${S}"/src
+ econf \
+ CFLAGS_MACHINE="${CFLAGS_MACHINE}" \
+ --with-c-flags="${CFLAGS}" \
+ --with-install-dir=/usr/$(get_libdir)/${P} \
+ --with-links-dir=/usr/bin \
+ $(use_with doc doc-dir /usr/share/doc/${PF}) \
+ $(use_with doc html-dir /usr/share/doc/${PF}/html) \
+ $(use_with examples examples-dir /usr/share/doc/${PF}/examples)
+}
+
+src_compile() {
+ cd "${S}"/src
+ emake
+}
+
+src_test() {
+ cd "${S}"/src
+ emake check
+}
+
+src_install() {
+ cd "${S}"/src
+ emake DESTDIR="${D}" install
+
+ cd "${S}"
+ dodoc ChangeLog NEWS PROBLEMS README VERSION
+}