diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/gprolog |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/gprolog')
-rw-r--r-- | dev-lang/gprolog/Manifest | 10 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.4-ldflags.patch | 40 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.4-links.patch | 16 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.4-nodocs.patch | 30 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.4-pic-code.patch | 12 | ||||
-rw-r--r-- | dev-lang/gprolog/files/gprolog-1.4.4-txt-file.patch | 11 | ||||
-rw-r--r-- | dev-lang/gprolog/gprolog-1.4.4.ebuild | 63 | ||||
-rw-r--r-- | dev-lang/gprolog/metadata.xml | 8 |
8 files changed, 190 insertions, 0 deletions
diff --git a/dev-lang/gprolog/Manifest b/dev-lang/gprolog/Manifest new file mode 100644 index 000000000000..057dd4167581 --- /dev/null +++ b/dev-lang/gprolog/Manifest @@ -0,0 +1,10 @@ +AUX gprolog-1.4.4-ldflags.patch 2015 SHA256 37df811f95e28be72d4516c152a8b9cb1ef0061312b364abfcddaaa67d92dfef SHA512 6b2c7efc33a17bb69ac14b807a54a67a4327071616c40296c60d8b25abe6231dd673138cd383ee4e232b53fe02fdf06c1a391ec3dd67dc2002ae39d40f37e7ef WHIRLPOOL 9877772df3906591bacabfe5f6645304054a187b7d3d42bef9fe437851810443350b1ef82e19ae676df8adb64839018e59bf1949ca6c052e4a0cebb2b1dbf73a +AUX gprolog-1.4.4-links.patch 562 SHA256 84a46f510413150f809e7ad176294465f0ee53a6f8faaf9eba74a3f07145d610 SHA512 ab3e41c8c55035ca466062b7a5184f23c32a568a41714add6577c0f2e573fe72e05b3aa69427406d05d88c4cb171148a0fd9d084b69d34657dfbf573513a1128 WHIRLPOOL 7a0a548b4c105fe6a6c7aa9c34d8a3567f03c8cdaa14491f09485cc6c6c8d511a12e37ec0431ab22f0c4fcff90c7cb2155df27643c007f0a588cc460874c5369 +AUX gprolog-1.4.4-nodocs.patch 1191 SHA256 4e342653326b061b5c0943f4396e2df78af8d39e2265408acb515465d665605c SHA512 c0dd7f705adaadbd5aa0bf164717928b5de52b507b2e6e9b8e07bcc99f43f8d010f8d7283a76f429d70b1024ae2db47fe01cef911857a5ad0d7c6693c2da1a28 WHIRLPOOL 14b711c5e76dc685a205dcfdf71ba7afe70a24813cbca8d996539c587ac126d2bdedf9fa494a3629ba12c3a49ddca2d61f94ab1823aeb487382956c7a81b2722 +AUX gprolog-1.4.4-pic-code.patch 568 SHA256 92d37326b3140348f9a7f86896d4c20e88ce293d873231866eb7c029fec23dae SHA512 190f693751b307f5390c5a2fde7e2a8ac6e9be6fa66ded5161b3b94a9db2a0789ed3a10b7aa8e00104473dc01a081889db9f7deddde6f94dfaa447804cde286d WHIRLPOOL affa2805869537dc5502bed9926d8bca9b74df40a6c26fec41182d9415625f63d6ac7fcd4a5a49a24f649c947a579a142cc9352443fbb6e8aa945c4371e7b18d +AUX gprolog-1.4.4-txt-file.patch 652 SHA256 a767cb72469d85bcfed3cf0a81e702b38a6b9ffec83af0e8bebbc1133dd7bd55 SHA512 658014da6b6e75555e9fbe4c55769de2401ebac627634d0046fb14e10e51e8f8915509bc482f6f1254c63d6fa47199757b31f94db6271dc4fdc8f02e2e0c59cc WHIRLPOOL 8e654f0dddfed62f55688dd48144c1f718a1bf52c009628dd143814e3f8ddab545a6240374f6b689957dc21085c5f17d729082fbdff5878b2c7e8e486f07b79c +DIST gprolog-1.4.4.tar.gz 3538152 SHA256 18c0e9644b33afd4dd3cdf29f94c099ad820d65e0c99da5495b1ae43b4f2b18e SHA512 b6227a06794d31162f2c790a025f7372a6676c1891a76e880d2152aeab6322d3341aeab85e11d9be6d97ff1c69801bee73fa3ea6b0659af61f55990a455dc212 WHIRLPOOL cdcdd60a7ebd045fa9bad2692430577477fc3a42eca3c86b31ce6c7c26c1b7c9e9c6d60273b33d0ceaec85bab08cc30d482c9ff740ed1ca0fce37a4b2c0a191d +EBUILD gprolog-1.4.4.ebuild 1557 SHA256 be40c48d24b65974d34a9e4c9e284cf596198404add8e38e19150ae92ec7b272 SHA512 30f9edfe26b273f9d23609450761aef70c2d50e4a894fb87cd7ab773087fd410d99c7f489bbb554db656308e7e76fca36c40cb289013d7ee132188086d46a6c7 WHIRLPOOL dfa1da61e8e301484af4e6d77e4680027a9cf4c88d1d17483ef0907cd43c228c8ba40e93f44171af0aa1808faaaa11d7443f3746f0127b2bd4382e99ab4c1af8 +MISC ChangeLog 2573 SHA256 23670f42a57773f937a11bfae8879002ae2b1702a8f8e3d9a46c01d6558c11b9 SHA512 3ae2f7c2ab96d2d2b19716b8e11a883a7358a5f1848acabaae0ee76d7d06be5bd0b7285ff50faaaa1d962390b7b611922f1eb393bf3f1ebcb98a1ca32ea83333 WHIRLPOOL a83a801281ae4ca3348131b05e44bfa07aa0164da5f4afedaa6025e7ab28fc3d777d495e1ed1df67227fdefbf8c9b12741c999997c67b64ea0f346bf53c1d86b +MISC ChangeLog-2015 10981 SHA256 c494bff64652a85a50a5ec71d33511fab911887a08cec461410adf017ee19818 SHA512 a63b1ba275edd9a17634f49f5eabb0c08f3a48eb51e1d4732bffb12e8039e5a27d28e1a0ba9dcd6d2f72749c2478cdeb30941e7fd2ed4e25599a817caeaa7875 WHIRLPOOL 6cbeeda7b112f1a3510e04b3aaf412ceea39acce98624548310f1aa0a68846107642390fb2d81b3e0ed4176807380a08540877ff9b5a9ad01d73936180ba6890 +MISC metadata.xml 236 SHA256 c7fee7a3c12781805b151438049c445031a7b7031f7f46869144430034dae0c7 SHA512 e776224736bd575412c7b5b799f649c6b2947a70e6a9aea580063d9da7d09a8144e5ebaf7ac3ef131d578486cf05dec814dce11b2aeb884cded3be3cab70fcec WHIRLPOOL 7173f7ab9ba51d9d11c9039b22bb96b429171319fc41cd20b4773cd4c5135d18add75769d2f5f450831d48e59e3b4a31488d0b00d655d4e03e97550677197bce diff --git a/dev-lang/gprolog/files/gprolog-1.4.4-ldflags.patch b/dev-lang/gprolog/files/gprolog-1.4.4-ldflags.patch new file mode 100644 index 000000000000..21f256bf71cb --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.4-ldflags.patch @@ -0,0 +1,40 @@ +diff -ur gprolog-1.4.4.orig/src/Ma2Asm/Makefile.in gprolog-1.4.4/src/Ma2Asm/Makefile.in +--- gprolog-1.4.4.orig/src/Ma2Asm/Makefile.in 2013-04-15 09:24:11.000000000 +0200 ++++ gprolog-1.4.4/src/Ma2Asm/Makefile.in 2013-05-15 16:59:59.000000000 +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 -ur gprolog-1.4.4.orig/src/TopComp/Makefile.in gprolog-1.4.4/src/TopComp/Makefile.in +--- gprolog-1.4.4.orig/src/TopComp/Makefile.in 2013-04-15 09:24:12.000000000 +0200 ++++ gprolog-1.4.4/src/TopComp/Makefile.in 2013-05-15 16:59:59.000000000 +0200 +@@ -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.4.orig/src/Wam2Ma/Makefile.in gprolog-1.4.4/src/Wam2Ma/Makefile.in +--- gprolog-1.4.4.orig/src/Wam2Ma/Makefile.in 2013-04-15 09:24:11.000000000 +0200 ++++ gprolog-1.4.4/src/Wam2Ma/Makefile.in 2013-05-15 16:59:59.000000000 +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.4-links.patch b/dev-lang/gprolog/files/gprolog-1.4.4-links.patch new file mode 100644 index 000000000000..25044ac9fc36 --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.4-links.patch @@ -0,0 +1,16 @@ +diff -ur gprolog-1.4.4.orig/src/Makefile.in gprolog-1.4.4/src/Makefile.in +--- gprolog-1.4.4.orig/src/Makefile.in 2013-04-23 16:56:44.000000000 +0200 ++++ gprolog-1.4.4/src/Makefile.in 2013-05-15 17:00:58.000000000 +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.4-nodocs.patch b/dev-lang/gprolog/files/gprolog-1.4.4-nodocs.patch new file mode 100644 index 000000000000..f5246e0302ad --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.4-nodocs.patch @@ -0,0 +1,30 @@ +diff -ur gprolog-1.4.4.orig/src/Makefile.in gprolog-1.4.4/src/Makefile.in +--- gprolog-1.4.4.orig/src/Makefile.in 2013-04-23 16:56:44.000000000 +0200 ++++ gprolog-1.4.4/src/Makefile.in 2013-05-15 17:01:25.000000000 +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.4-pic-code.patch b/dev-lang/gprolog/files/gprolog-1.4.4-pic-code.patch new file mode 100644 index 000000000000..a85aea0746eb --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.4-pic-code.patch @@ -0,0 +1,12 @@ +diff -ur gprolog-1.4.4.orig/src/Ma2Asm/x86_64_any.c gprolog-1.4.4/src/Ma2Asm/x86_64_any.c +--- gprolog-1.4.4.orig/src/Ma2Asm/x86_64_any.c 2013-04-22 13:52:16.000000000 +0200 ++++ gprolog-1.4.4/src/Ma2Asm/x86_64_any.c 2017-07-19 17:27:37.057124771 +0200 +@@ -204,7 +204,7 @@ + strcpy(asm_reg_cp, Off_Reg_Bank(MAP_OFFSET_CP)); + #endif + +-#ifdef M_x86_64_darwin ++#if defined(M_x86_64_darwin) || defined(M_x86_64_linux) + pic_code = 1; /* NB: on darwin everything is PIC code */ + #elif defined(_WIN32) + pic_code = 0; /* NB: on MinGW nothing is needed for PIC code */ diff --git a/dev-lang/gprolog/files/gprolog-1.4.4-txt-file.patch b/dev-lang/gprolog/files/gprolog-1.4.4-txt-file.patch new file mode 100644 index 000000000000..adeb4428b582 --- /dev/null +++ b/dev-lang/gprolog/files/gprolog-1.4.4-txt-file.patch @@ -0,0 +1,11 @@ +diff -ur gprolog-1.4.4.orig/src/Makefile.in gprolog-1.4.4/src/Makefile.in +--- gprolog-1.4.4.orig/src/Makefile.in 2013-04-23 16:56:44.000000000 +0200 ++++ gprolog-1.4.4/src/Makefile.in 2013-05-15 17:01:48.000000000 +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.4.ebuild b/dev-lang/gprolog/gprolog-1.4.4.ebuild new file mode 100644 index 000000000000..4d915c78666d --- /dev/null +++ b/dev-lang/gprolog/gprolog-1.4.4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +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="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}-pic-code.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 + + 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 VERSION +} diff --git a/dev-lang/gprolog/metadata.xml b/dev-lang/gprolog/metadata.xml new file mode 100644 index 000000000000..96eff3ea40c0 --- /dev/null +++ b/dev-lang/gprolog/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>prolog@gentoo.org</email> + <name>Prolog</name> +</maintainer> +</pkgmetadata> |