diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-11-19 07:42:06 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-11-19 07:42:06 +0000 |
commit | beb6c738ae511c11efbc5c3bb82fa5518520101e (patch) | |
tree | a38eb16e50b454a0e1851c647354b861cc39f0e9 /sci-mathematics/yafu | |
parent | Initial import, ebuild by me (diff) | |
download | historical-beb6c738ae511c11efbc5c3bb82fa5518520101e.tar.gz historical-beb6c738ae511c11efbc5c3bb82fa5518520101e.tar.bz2 historical-beb6c738ae511c11efbc5c3bb82fa5518520101e.zip |
Initial import, ebuild by me
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics/yafu')
-rw-r--r-- | sci-mathematics/yafu/Manifest | 3 | ||||
-rw-r--r-- | sci-mathematics/yafu/metadata.xml | 8 | ||||
-rw-r--r-- | sci-mathematics/yafu/yafu-1.33.ebuild | 45 |
3 files changed, 55 insertions, 1 deletions
diff --git a/sci-mathematics/yafu/Manifest b/sci-mathematics/yafu/Manifest index 6a0f251e5018..e8791b274b12 100644 --- a/sci-mathematics/yafu/Manifest +++ b/sci-mathematics/yafu/Manifest @@ -1,3 +1,4 @@ DIST yafu-1.33-src.zip 537546 SHA256 46f5c0bb17b5a933e463805fb9a87cbef4dc1c3938d0840604cd78fded0c41be SHA512 a39f22aa8b91dfe244fe2b84b89ec8bbe0f2f8d8db99310834da387a6572f08c6bf85d05159c982a02246305ec34e2b7ac7ce2d6962a4fae0b8f8caaeaf30022 WHIRLPOOL 54e280a8f96251de9f59bf4345341c4ee88c88c298404a1aa6f5c3790a25951aa42962490969653e4dcbc3798dac57104a1084b060ce9a946f8ead53e6bc4820 -EBUILD yafu-1.33.ebuild 1402 SHA256 47ece35834f13541e62a154b196276a36ddc411cff0512ba0fb3a348a698ec0b SHA512 4ce21282d4160ff6f8e1f7f41f192a60befbdb05ad29c388a17517ab39fb52b45fcf4316efeae17126398f096decb2bb4b0b4cb1e3a5d862439e25b25b9c4a26 WHIRLPOOL 2550eaf851c845194ead5fcac329a74399c6b57a1d25c89012d9d368817e836e4cd840f5438132cbecae03736c7345c09607b95713eab81607076cdf3429efb8 +EBUILD yafu-1.33.ebuild 1502 SHA256 1d21ab097b8f6544fb8db8fa74ae083529ef4357815b86e69b65cffd73a44e30 SHA512 d8665518bfd88e0408e79e5f64644fbce52f1dc98dff3abc25cc94446da09f304bc0119aa4768a446ee54219de1d01493c5e916a3c2eb1816d57f09fbb40f4f6 WHIRLPOOL 6c50b877595a0734ad4eef0902f770f8e395b15f3cccc4861d10c857202e0a0007c36bf739c441f65a4a3566ddd4aaceb1dafcf016c74100ef12822731b8a013 +MISC ChangeLog 357 SHA256 d9420684ccca7c41138052ed3b70b91e6dd205d2ed83b1185601ae2cfd7ee783 SHA512 7f52b446d9c60b81808b159c95a47d389dd5f7798977505263c6bf60ed94bfee6d77316dad3427c54d82e797023200484fad4fb83e1e80a20834ce74f55d5e65 WHIRLPOOL abff8338af83229769fef7f59f826e380aca554042323b4eb2e21370eb248eb3e2ac44a194aeb85a0b3f00e891943ec20256f3910fd25ca940e92ce28e5fb97c MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480 diff --git a/sci-mathematics/yafu/metadata.xml b/sci-mathematics/yafu/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/sci-mathematics/yafu/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> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/sci-mathematics/yafu/yafu-1.33.ebuild b/sci-mathematics/yafu/yafu-1.33.ebuild new file mode 100644 index 000000000000..be1868ef9e3a --- /dev/null +++ b/sci-mathematics/yafu/yafu-1.33.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/yafu-1.33.ebuild,v 1.1 2012/11/19 07:41:56 patrick Exp $ + +EAPI=4 +DESCRIPTION="Yet another factoring utility" +HOMEPAGE="http://sourceforge.net/projects/yafu/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip" + +inherit eutils + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/gmp + sci-mathematics/gmp-ecm" +RDEPEND="${DEPEND}" + +src_prepare() { + # 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" +} + +src_compile() { + if use amd64; then + emake x86_64 || die "Failed to build" + fi + if use x86; then + emake x86 || die "Failed to build" + fi +} + +src_install() { + mkdir -p "${D}/usr/bin/" + cp "${S}/yafu" "${D}/usr/bin/" || die "Failed to install" + mkdir -p "${D}/usr/share/doc/${PN}" + cp "${S}/docfile.txt" "${D}/usr/share/doc/${PN}/yafu.txt" || die "Failed to install" + cp "${S}/README" "${D}/usr/share/doc/${PN}/" || die "Failed to install" + cp "${S}/yafu.ini" "${D}/usr/share/doc/${PN}/yafu.ini.example" || die "Failed to install" +} |