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 /sci-mathematics/yafu |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/yafu')
-rw-r--r-- | sci-mathematics/yafu/Manifest | 7 | ||||
-rw-r--r-- | sci-mathematics/yafu/files/fix-Makefile.patch | 11 | ||||
-rw-r--r-- | sci-mathematics/yafu/metadata.xml | 14 | ||||
-rw-r--r-- | sci-mathematics/yafu/yafu-1.34.3.ebuild | 55 | ||||
-rw-r--r-- | sci-mathematics/yafu/yafu-9999.ebuild | 55 |
5 files changed, 142 insertions, 0 deletions
diff --git a/sci-mathematics/yafu/Manifest b/sci-mathematics/yafu/Manifest new file mode 100644 index 000000000000..2987a28517b7 --- /dev/null +++ b/sci-mathematics/yafu/Manifest @@ -0,0 +1,7 @@ +AUX fix-Makefile.patch 284 SHA256 c15bfdc89a72ff57a85bc75922c65e1338c5fd682886e3a51f50dff6b01703eb SHA512 40e17093675e767cae4f757e85c671b85cd83b57c71c4bf0721a26745dcd5a9a17a8160e0c4caf168f8878461597b6efa30a2f1cec83ba64319acb2787e4609a WHIRLPOOL 0d7bca07af63b391f459e61a7f71bad240801d0c9c0ad3f3dacaa24ad5fc4c076eae9483798b1ff5d3f10b7d2e8b7a31a944fc4fd3d49b97f32a0fbfd9e96564 +DIST yafu-1.34-src.zip 686655 SHA256 ad3e6b74f766a7c59280642065ea9482d438dc3be383962f50119f43948631be SHA512 f8afba77e0286c579b4152517ba3a0b6b85d43606e4fafc653dc06b7f7c2aba0f8f3c65b38f3496657495bff476dd4cc8e06daaad8a7a78a36fc6e1c0cf046a4 WHIRLPOOL 69a2b0a99914bbf3cbb6b0cc91597b3d9ae25f29622af859a279f53c2281ae5e0f4e691112f111ad53781b0fe0258f73b1c9ee400cb4d22c28cfeb136785ca41 +EBUILD yafu-1.34.3.ebuild 1783 SHA256 a55dfb86bb69fd85faf999f1723a1f1e5467d8a4c7640a44d9c2d453c0e04e2a SHA512 f2b86bf2c8b31f67581930fd729eaee3c27d8dd89b570b7f02e58ae4b58833abd309d3d9c1cdce0893ed149a96c25f53e52432102bdc0d063f9e21536056094c WHIRLPOOL 4b6809be558e72fa8573846dba021c55dff0ec3b3f9c04e3aab097a53c189b294900857363d88050bffbc9b729568423b430cf6873f013e6c42be64e99a93717 +EBUILD yafu-9999.ebuild 1759 SHA256 ab2d69e44762866d542bccc260ec428ffc011ad2447faf7cc950c626819999c7 SHA512 024bb3283f5f22328580d3d83360e8bdf783bea00e53a83459b1dcef2a9142c86a9a2d21e061fe68817e2548735931568ec0fb73ccba3a197cd3933bb6d55c55 WHIRLPOOL 04fbc9cc074821664193101eeedd9922fde13ddc1b3929b92705b86726396235e1e93ffd1180c6dcb3088105f8d71e4f10d21bf47ac439ee16ca7ccb3ac13ccb +MISC ChangeLog 3177 SHA256 11e382bea25aa2411d6a76d18c03e64fa3ed87154a27b6d976439634f8dbecc4 SHA512 161b0235be8bcedd87a223bc4316d372d674cebf76cf17bdfe9a12b58c25cc852ea9345e8da66886f6cd6fdb245d15b4d7a5c01c2ae0b394df748d0a0a3e7841 WHIRLPOOL f355e841522217a5ea1835a4786b2e13258f2b1d252258b4d1601c7d03b3a0c0589deac3c51d014e87a4024ba3d2fc9b1f7862806aaa02eaaf1b7978d58e6f15 +MISC ChangeLog-2015 1847 SHA256 f880dcd6e764ab5deb2bc00fcf3a9e5d7875bcbf347fc8d2323f11149aa385b1 SHA512 43a2712a2617ef2cb9c16ec6067a00b2eeb7877ce488bcb8e35fa6cac8fe43544e6a5e8bb8fefadc872c637b33ceed6754420492cf3715ca80e68aa933102f69 WHIRLPOOL 3a00e9e514f9ccf0a1da6ed74d90527e2bfe48fb53e11fd34213ddceb4a06bee2a94728d826070a079245b9c59951e8c27994aa8097e90bb4114ce214d6ada5e +MISC metadata.xml 418 SHA256 5517fe34fd42cfb3269d889c7a5bd404833e4da06b262b3a018a56710833a4ad SHA512 36f48590e2713be40668446867f7e5937dd1be766566e2c90330bd467c8797f3169c71d785d3c9a2b3d839a411332f90c4770e27875da99e9e760d60c6b79a6d WHIRLPOOL 6941f55a35458ffa15670e594066ff2e2cfa6391e50d7c499c5d20671dda622853f7b81b135fb0399ace3ae5023650ad97109a90f1d384926e6b1425955c7519 diff --git a/sci-mathematics/yafu/files/fix-Makefile.patch b/sci-mathematics/yafu/files/fix-Makefile.patch new file mode 100644 index 000000000000..82b8e0d7d2ff --- /dev/null +++ b/sci-mathematics/yafu/files/fix-Makefile.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2013-03-17 11:20:40.248683894 +0400 ++++ Makefile 2013-03-17 11:20:47.352683657 +0400 +@@ -87,7 +87,7 @@ ifeq ($(CC),icc) + CFLAGS += -mtune=core2 -march=core2 + endif + +-LIBS += -lecm -lgmp ++LIBS += -lecm -lgmp -lgomp + + CFLAGS += $(OPT_FLAGS) $(WARN_FLAGS) $(INC) + diff --git a/sci-mathematics/yafu/metadata.xml b/sci-mathematics/yafu/metadata.xml new file mode 100644 index 000000000000..651621cc9277 --- /dev/null +++ b/sci-mathematics/yafu/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <use> + <flag name="sieve">Use msieve for the sieving steps of NFS</flag> + </use> + <upstream> + <remote-id type="sourceforge">yafu</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-mathematics/yafu/yafu-1.34.3.ebuild b/sci-mathematics/yafu/yafu-1.34.3.ebuild new file mode 100644 index 000000000000..cf1be408e987 --- /dev/null +++ b/sci-mathematics/yafu/yafu-1.34.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils versionator + +MY_PV="$(get_version_component_range 1-2)" + +DESCRIPTION="Yet another factoring utility" +HOMEPAGE="https://sourceforge.net/projects/yafu/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PV}/${PN}-${MY_PV}-src.zip" + +SLOT="0" +LICENSE="public-domain" +KEYWORDS="~amd64 ~x86" +# nfs is overloaded, so using less confusing sieve here +IUSE="+sieve" + +DEPEND=" + dev-libs/gmp:0= + sci-mathematics/gmp-ecm + sieve? ( + sci-mathematics/msieve + sci-mathematics/ggnfs )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/fix-Makefile.patch" + # This is not nice. But then the Makefile is quite special :) + sed -i -e 's:../gmp/include:gmp:' Makefile || die "Failed to rectify things" + sed -i -e 's:../gmp-ecm/include:gmp-ecm:' Makefile || die "Failed to rectify things" + sed -i -e 's:LIBS += -L../:# LIBS += -L../:g' Makefile || die "Failed to rectify things" + sed -i -e 's:\"config.h\":<gmp-ecm/config.h>:g' top/driver.c || die "Failed to rectify things" + sed -i -e 's:# LIBS += -L../msieve/lib/linux/x86_64:LIBS += -lmsieve -lz -ldl:' Makefile || die "Failed to rectify things" + sed -i -e 's:CFLAGS = -g:#CFLAGS = -g:' Makefile || die "Failed to rectify things" + sed -i -e '/$(LIBS)$/s:$(CC):$(CC) $(LDFLAGS):g' Makefile || die + + # proper ggnfs default path + sed -i -e 's~strcpy(fobj->nfs_obj.ggnfs_dir,"./");~strcpy(fobj->nfs_obj.ggnfs_dir,"/usr/bin/");~' factor/factor_common.c || die "Failed to rectify things" +} + +src_compile() { + local VAR="" + # hmm, not that useful: + #VAR="TIMING=1 " + use sieve && VAR+="NFS=1" + use amd64 && emake $VAR x86_64 + use x86 && emake $VAR x86 +} + +src_install() { + dobin "${S}/yafu" + dodoc docfile.txt README yafu.ini +} diff --git a/sci-mathematics/yafu/yafu-9999.ebuild b/sci-mathematics/yafu/yafu-9999.ebuild new file mode 100644 index 000000000000..3f727cf66ae4 --- /dev/null +++ b/sci-mathematics/yafu/yafu-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils subversion versionator + +DESCRIPTION="Yet another factoring utility" +HOMEPAGE="https://sourceforge.net/projects/yafu/" +#SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip" +ESVN_REPO_URI="https://svn.code.sf.net/p/yafu/code/" + +SLOT="0" +LICENSE="public-domain" +KEYWORDS="" +# nfs is overloaded, so using less confusing sieve here +IUSE="+sieve" + +DEPEND=" + dev-libs/gmp:0= + sci-mathematics/gmp-ecm + sieve? ( + sci-mathematics/msieve + sci-mathematics/ggnfs )" +RDEPEND="${DEPEND}" + +src_prepare() { + cd trunk + # This is not nice. But then the Makefile is quite special :) + sed -i -e 's:../gmp/include:gmp:' Makefile || die "Failed to rectify things" + sed -i -e 's:../gmp-ecm/include:gmp-ecm:' Makefile || die "Failed to rectify things" + sed -i -e 's:LIBS += -L../:# LIBS += -L../:g' Makefile || die "Failed to rectify things" + sed -i -e 's:\"config.h\":<gmp-ecm/config.h>:g' top/driver.c || die "Failed to rectify things" + sed -i -e 's:# LIBS += -L../msieve/lib/linux/x86_64:LIBS += -lmsieve -lz -ldl:' Makefile || die "Failed to rectify things" + sed -i -e 's:CFLAGS = -g:#CFLAGS = -g:' Makefile || die "Failed to rectify things" + sed -i -e '/$(LIBS)$/s:$(CC):$(CC) $(LDFLAGS):g' Makefile || die + + # proper ggnfs default path + sed -i -e 's~strcpy(fobj->nfs_obj.ggnfs_dir,"./");~strcpy(fobj->nfs_obj.ggnfs_dir,"/usr/bin/");~' factor/factor_common.c || die "Failed to rectify things" +} + +src_compile() { + local VAR="" + cd trunk + # hmm, not that useful: + #VAR="TIMING=1 " + use sieve && VAR+="NFS=1" + use amd64 && emake $VAR x86_64 + use x86 && emake $VAR x86 +} + +src_install() { + dobin "${S}/yafu" + dodoc docfile.txt README yafu.ini +} |