summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2012-04-16 23:46:25 +0300
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2012-04-16 23:46:36 +0300
commitbbe7a989a180c63f3d978ae6eb709c3d8a6afbbe (patch)
tree2089fc5b74cda8aff6313297c7a81346f63bba06
parentReverse commit order for git diff in review script. (diff)
downloadsunrise-bbe7a989a180c63f3d978ae6eb709c3d8a6afbbe.tar.gz
sunrise-bbe7a989a180c63f3d978ae6eb709c3d8a6afbbe.tar.bz2
sunrise-bbe7a989a180c63f3d978ae6eb709c3d8a6afbbe.zip
dev-cpp/mpfrc++: New ebuild for bug #412249 thanks to hasufell and floppym
-rw-r--r--dev-cpp/mpfrc++/ChangeLog10
-rw-r--r--dev-cpp/mpfrc++/Manifest5
-rw-r--r--dev-cpp/mpfrc++/files/Makefile21
-rw-r--r--dev-cpp/mpfrc++/metadata.xml7
-rw-r--r--dev-cpp/mpfrc++/mpfrc++-20120116.ebuild34
5 files changed, 77 insertions, 0 deletions
diff --git a/dev-cpp/mpfrc++/ChangeLog b/dev-cpp/mpfrc++/ChangeLog
new file mode 100644
index 000000000..cd1c387e8
--- /dev/null
+++ b/dev-cpp/mpfrc++/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-cpp/mpfrc++
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mpfrc++-20120116 (16 Apr 2012)
+
+ 16 Apr 2012; Jauhien Piatlicki (jauhien) piatlicki@gmail.com
+ +mpfrc++-20120116.ebuild, +files/Makefile, +metadata.xml:
+ New ebuild for bug #412249 thanks to hasufell and floppym
+
diff --git a/dev-cpp/mpfrc++/Manifest b/dev-cpp/mpfrc++/Manifest
new file mode 100644
index 000000000..d1444a9f3
--- /dev/null
+++ b/dev-cpp/mpfrc++/Manifest
@@ -0,0 +1,5 @@
+AUX Makefile 389 RMD160 87e01a2fa9c3a0fa57662f9df72ec777cbf27987 SHA1 07c18d896976385e40fec031a22d5bd4204fb81f SHA256 550b055c02867eca6e9203cdd8000d44a9915cc0ea24eddb597c42be41e10e6d
+DIST mpfrc++-20120116.tar.gz 77656 RMD160 155d71e1b8c10454ee9034f1ace5d86a3d54c4cd SHA1 91ade20b167be467e4668f5ddc6045f55aaf4c2e SHA256 4b4fba12ad47a5946465244ca2fc9287e3d9b84212ea3738d9ad57cae0ccdaa8
+EBUILD mpfrc++-20120116.ebuild 727 RMD160 2b7da162c40a853aafa1132cfdcea835b2234471 SHA1 4f455208b70df80bc872aece0904920474b20e31 SHA256 8d2d6fa23ce16ea24b22dba70b89a1ac2d2820c8e67929733267d05940ac2de7
+MISC ChangeLog 333 RMD160 e4882d1df67e5f2e09f4eab378abdae58ccc7a9a SHA1 810ec88a3866f8a1690bdb9c27b0ccf6a1315400 SHA256 aa1e2f1bb7e26b27f7b0e8fe60373541e913fb9b0395998b59e12f4e10d40829
+MISC metadata.xml 214 RMD160 efd8175069efb91061298ff4584218b633e44678 SHA1 d372fdbfcb7fd07a4082961d3f3527be4fca1d60 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154
diff --git a/dev-cpp/mpfrc++/files/Makefile b/dev-cpp/mpfrc++/files/Makefile
new file mode 100644
index 000000000..ce95b5035
--- /dev/null
+++ b/dev-cpp/mpfrc++/files/Makefile
@@ -0,0 +1,21 @@
+LNAME=mpfrc++
+VER=20120116
+LIBRARY=lib$(LNAME).so
+REALNAME=$(LIBRARY).$(VER)
+CXX ?= g++
+
+ALL : $(REALNAME)
+
+$(REALNAME) : dlmalloc.o mpreal.o
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $? -lmpfr
+
+mpreal.o: mpreal.cpp mpreal.h
+ $(CXX) $(CXXFLAGS) -fPIC -c mpreal.cpp
+
+dlmalloc.o: dlmalloc.c dlmalloc.h
+ $(CXX) $(CXXFLAGS) -fPIC -c dlmalloc.c
+
+.PHONY: clean
+
+clean:
+ rm -f *.o $(REALNAME)
diff --git a/dev-cpp/mpfrc++/metadata.xml b/dev-cpp/mpfrc++/metadata.xml
new file mode 100644
index 000000000..cc3fe2494
--- /dev/null
+++ b/dev-cpp/mpfrc++/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-cpp/mpfrc++/mpfrc++-20120116.ebuild b/dev-cpp/mpfrc++/mpfrc++-20120116.ebuild
new file mode 100644
index 000000000..1e1d619bb
--- /dev/null
+++ b/dev-cpp/mpfrc++/mpfrc++-20120116.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit multilib toolchain-funcs vcs-snapshot
+
+DESCRIPTION="High-performance C++ interface for MPFR library"
+HOMEPAGE="http://www.holoborodko.com/pavel/mpfr/"
+SRC_URI="https://bitbucket.org/advanpix/nika/get/88fa1ed2a7a5.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-libs/mpfr"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ cp "${FILESDIR}/Makefile" Makefile || die
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ dolib.so lib${PN}.so.${PV}
+ dosym lib${PN}.so.${PV} usr/$(get_libdir)/lib${PN}.so
+ insinto usr/include
+ doins dlmalloc.h mpreal.h
+}