diff options
Diffstat (limited to 'dev-lang/gprolog')
-rw-r--r-- | dev-lang/gprolog/Manifest | 6 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.5-ldflags.patch | 40 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.5-links.patch | 15 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.5-nodocs.patch | 29 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.5-txt-file.patch | 10 | ||||
-rw-r--r-- | dev-lang/gprolog/gprolog-1.4.5.ebuild | 64 |
6 files changed, 164 insertions, 0 deletions
diff --git a/dev-lang/gprolog/Manifest b/dev-lang/gprolog/Manifest index 4c3d690befb8..cf33350a4ea6 100644 --- a/dev-lang/gprolog/Manifest +++ b/dev-lang/gprolog/Manifest @@ -3,6 +3,12 @@ AUX gprolog-1.4.4-links.patch 562 BLAKE2B 9569312424294c5336cc4f45a12bf2b3e06e56 AUX gprolog-1.4.4-nodocs.patch 1191 BLAKE2B 31e46875bf88eb1ffcae700e86d9314f6e059b7f8d37f5be8be784e5b5fb0b37a7dadc5014c348024e75586f1c8f9c61ab3666846b43ba1b44480acf55a559f6 SHA512 c0dd7f705adaadbd5aa0bf164717928b5de52b507b2e6e9b8e07bcc99f43f8d010f8d7283a76f429d70b1024ae2db47fe01cef911857a5ad0d7c6693c2da1a28 AUX gprolog-1.4.4-pic-code.patch 568 BLAKE2B 36847ec044120bcb26770c62fb3b56c1cf82cf67343684193a771700a89b43433311cc118583d0845032a2d51c14da61b3b2acafb25622ce2543335c130ace28 SHA512 190f693751b307f5390c5a2fde7e2a8ac6e9be6fa66ded5161b3b94a9db2a0789ed3a10b7aa8e00104473dc01a081889db9f7deddde6f94dfaa447804cde286d AUX gprolog-1.4.4-txt-file.patch 652 BLAKE2B f3f077473eabd7902da263bc88d7e3b7034a8f794ba7ff25d96e72ae33ee399f0fac31cdf912df79dbd9bc0b3c2aa15dd910c3ef0ad621a2ea48e7ba278682bb SHA512 658014da6b6e75555e9fbe4c55769de2401ebac627634d0046fb14e10e51e8f8915509bc482f6f1254c63d6fa47199757b31f94db6271dc4fdc8f02e2e0c59cc +AUX gprolog-1.4.5-ldflags.patch 2018 BLAKE2B 22abb02fd783418b44eed4eac046782185322ff06a905f97f317a8dc19c1861f8939a905ab76ab5dacd92cdf5b8c9b3fafce1d608b24e8cc6c9333e1a96dc6df SHA512 79f20d12b24cb691d8628cf985130c9e133db694886e49bf2d760bab7696ca9bd5a3250f2671486404b37a16b3fee54b25a49175e32df46f533f97376610da98 +AUX gprolog-1.4.5-links.patch 488 BLAKE2B aa6c833c8f6d8a7bf6f2a30ef971efd4389035976be40bd02d0ec06441e17e5153ce40fe7d1fb6e93f5984994d1ecc618217189c1d0a9b8512d4f1363c8d2842 SHA512 556096de1d4fec220e344949a3d05022ddd218dac53774e537f211bd75b5ecfde21b7e1753e58b8870afd3b38501b1fc028c751c4eeaa569d30bdeda8ac723d2 +AUX gprolog-1.4.5-nodocs.patch 1117 BLAKE2B 15e65f72506a57dc7b1c549cb4f01c43e9d46f8a78c4a16309599b1db48d192e8aab933dc128ebcea957f77778a321f10d9233676356d52efc7c33e4ed658d13 SHA512 c4aa11081c8c85989e9947b3be25bc74a22456ecf5404b943e9985835319e7c33273bd2b30f003aad4cc3bc842b98069e647b8203a3c4f45f8cf2bed08af9afd +AUX gprolog-1.4.5-txt-file.patch 578 BLAKE2B 22f4803c19fc4e8266065e457e711df2885d8539325f02bc426d1a351163e3dcf6f339e3f1bb2586e807ebd41b237f7e4f1ca9a139bd3fa71c76db5684c9d37d SHA512 e0cb7ed9c6dd8a394898086335312556ffa313e18dba9c281bcc45749ef9b297f0ec3cfddfd197524be55315c79cf89f370a04f0d6b10a0e95ac6a59ca92fc67 DIST gprolog-1.4.4.tar.gz 3538152 BLAKE2B 159cf58e6d7f33662a6bd11f284abd9e52be0f82cafe180263148d13002e66987253e9dcd7db232b33470ddb685570efe3615c7029af96be44bb556bd9c2d261 SHA512 b6227a06794d31162f2c790a025f7372a6676c1891a76e880d2152aeab6322d3341aeab85e11d9be6d97ff1c69801bee73fa3ea6b0659af61f55990a455dc212 +DIST gprolog-1.4.5.tar.gz 3587361 BLAKE2B c0c73ce249d7c26b914a3f831c6ac93aeb884bded6c5ebbe51223f0685de0be2e746533aade1633a953b93e88a30796fa52ecd5e609d05bc051363cbf34e0477 SHA512 425103bc9e5bdbdb4ae331f5be0cf49524fbdb4f5e2809fb973360de9e7ad9935c1b28f3603e0be696a647153d9f0d3dacdc87251098ac99faf7d0b3c652fc60 EBUILD gprolog-1.4.4.ebuild 1557 BLAKE2B 9b6f76d4bd2ad7771c6b7e179fc57ba6b1691799942d4cbc85eec70dfb375e298ca4c7fcd01d4e762c103e517a237586ebbb60b1d088a97c4ea1ac2d7286775c SHA512 30f9edfe26b273f9d23609450761aef70c2d50e4a894fb87cd7ab773087fd410d99c7f489bbb554db656308e7e76fca36c40cb289013d7ee132188086d46a6c7 +EBUILD gprolog-1.4.5.ebuild 1541 BLAKE2B 1889a36a7565c1987b3c393f3ae306c48b39e7a47ab07eca35f5469d57de624a95129045d4b65f49f2dd313d64a12864c959916faa64d41634e7a64d2871145f SHA512 89eb5f9c9d977d7b1a8f7bb39335ac0249433b14ad390a23fd24c086b91422e04c9e2ccaf0e5d8f546671f73f2a924f355c6dcd7a864d29842e0a2a9bde3eeb0 MISC metadata.xml 236 BLAKE2B 665f3de6dc90f46a18379b3416063a49b1a79ddd7ef89eaed9be78f9adc5b234e9693cd31d6cf2d3477fc7dc00055492bef7de78da6c901c4a6e55eb0e781325 SHA512 e776224736bd575412c7b5b799f649c6b2947a70e6a9aea580063d9da7d09a8144e5ebaf7ac3ef131d578486cf05dec814dce11b2aeb884cded3be3cab70fcec diff --git a/dev-lang/gprolog/files/gprolog-1.4.5-ldflags.patch b/dev-lang/gprolog/files/gprolog-1.4.5-ldflags.patch new file mode 100644 index 000000000000..05bdb8e366a4 --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.5-ldflags.patch @@ -0,0 +1,40 @@ +diff -urN gprolog-1.4.5.orig/src/Ma2Asm/Makefile.in gprolog-1.4.5/src/Ma2Asm/Makefile.in +--- gprolog-1.4.5.orig/src/Ma2Asm/Makefile.in 2015-01-13 19:00:19.000000000 +0100 ++++ gprolog-1.4.5/src/Ma2Asm/Makefile.in 2018-07-22 11:20:29.622236171 +0200 +@@ -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 -urN gprolog-1.4.5.orig/src/TopComp/Makefile.in gprolog-1.4.5/src/TopComp/Makefile.in +--- gprolog-1.4.5.orig/src/TopComp/Makefile.in 2018-07-14 10:19:12.000000000 +0200 ++++ gprolog-1.4.5/src/TopComp/Makefile.in 2018-07-22 11:20:29.622236171 +0200 +@@ -23,10 +23,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 -urN gprolog-1.4.5.orig/src/Wam2Ma/Makefile.in gprolog-1.4.5/src/Wam2Ma/Makefile.in +--- gprolog-1.4.5.orig/src/Wam2Ma/Makefile.in 2015-01-05 11:11:29.000000000 +0100 ++++ gprolog-1.4.5/src/Wam2Ma/Makefile.in 2018-07-22 11:20:29.622236171 +0200 +@@ -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.5-links.patch b/dev-lang/gprolog/files/gprolog-1.4.5-links.patch new file mode 100644 index 000000000000..c39a1cf9a28c --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.5-links.patch @@ -0,0 +1,15 @@ +--- gprolog-1.4.5.orig/src/Makefile.in 2018-07-14 10:19:12.000000000 +0200 ++++ gprolog-1.4.5/src/Makefile.in 2018-07-22 11:41:15.762184054 +0200 +@@ -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.5-nodocs.patch b/dev-lang/gprolog/files/gprolog-1.4.5-nodocs.patch new file mode 100644 index 000000000000..c5c517b1887a --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.5-nodocs.patch @@ -0,0 +1,29 @@ +--- gprolog-1.4.5.orig/src/Makefile.in 2018-07-14 10:19:12.000000000 +0200 ++++ gprolog-1.4.5/src/Makefile.in 2018-07-22 11:59:54.877137249 +0200 +@@ -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.5-txt-file.patch b/dev-lang/gprolog/files/gprolog-1.4.5-txt-file.patch new file mode 100644 index 000000000000..e385e948129b --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.5-txt-file.patch @@ -0,0 +1,10 @@ +--- gprolog-1.4.5.orig/src/Makefile.in 2018-07-14 10:19:12.000000000 +0200 ++++ gprolog-1.4.5/src/Makefile.in 2018-07-22 11:56:09.247146686 +0200 +@@ -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.5.ebuild b/dev-lang/gprolog/gprolog-1.4.5.ebuild new file mode 100644 index 000000000000..b158b38e3fca --- /dev/null +++ b/dev-lang/gprolog/gprolog-1.4.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils flag-o-matic multilib + +DESCRIPTION="A native Prolog compiler with constraint solving over finite domains (FD)" +HOMEPAGE="http://www.gprolog.org/" +SRC_URI="http://www.gprolog.org/${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 + + eapply_user +} + +src_configure() { + CFLAGS_MACHINE="`get-flag -march` `get-flag -mcpu` `get-flag -mtune`" + + append-flags -fno-strict-aliasing + use debug && append-flags -DDEBUG + + cd "${S}"/src + econf \ + CFLAGS_MACHINE="${CFLAGS_MACHINE}" \ + --with-c-flags="${CFLAGS}" \ + --with-install-dir="${EPREFIX}"/usr/$(get_libdir)/${P} \ + --with-links-dir="${EPREFIX}"/usr/bin \ + $(use_with doc doc-dir "${EPREFIX}"/usr/share/doc/${PF}) \ + $(use_with doc html-dir "${EPREFIX}"/usr/share/doc/${PF}/html) \ + $(use_with examples examples-dir "${EPREFIX}"/usr/share/doc/${PF}/examples) +} + +src_compile() { + cd "${S}"/src + # gprolog is compiled using gplc which cannot be run in parallel + emake -j1 +} + +src_test() { + cd "${S}"/src + emake -j1 check +} + +src_install() { + cd "${S}"/src + emake DESTDIR="${D}" install + + cd "${S}" + dodoc ChangeLog NEWS PROBLEMS README +} |