summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Bräunlich <wippbox@gmx.net>2016-09-05 17:34:14 +0200
committerDavid Seifert <soap@gentoo.org>2016-09-05 23:09:43 +0200
commit9086cec68c5744872fb5422de30a9ebb84abecae (patch)
treefa03b49a41354230cf10a42223842744268e5780 /sci-libs
parentsci-libs/cqrlib: Fix overlong DESCRIPTION (diff)
downloadgentoo-9086cec68c5744872fb5422de30a9ebb84abecae.tar.gz
gentoo-9086cec68c5744872fb5422de30a9ebb84abecae.tar.bz2
gentoo-9086cec68c5744872fb5422de30a9ebb84abecae.zip
sci-libs/cqrlib: Version bump to 1.1.3 and EAPI 4 -> 6
Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/2248 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cqrlib/Manifest1
-rw-r--r--sci-libs/cqrlib/cqrlib-1.1.3.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/sci-libs/cqrlib/Manifest b/sci-libs/cqrlib/Manifest
index 18afb8a310d0..63fd502a427d 100644
--- a/sci-libs/cqrlib/Manifest
+++ b/sci-libs/cqrlib/Manifest
@@ -1 +1,2 @@
DIST CQRlib-1.1.2.tar.gz 43082 SHA256 af3cf2402974579f3c6efc6a6174a5da52786db4bfee9d38d504d93bc42410fd SHA512 41510d0a03ef48385896be6695b8ca328d56dc7d0ef82db2e46108913d814d3545febe76114589ee6fa3bfad75a2832d98120ec966e052245a3b4f0e684c2b9f WHIRLPOOL 2c1de60f88b5cfb9c5e406bc2b9f93617c7ef390ae290716bcec891b17ec8388bab37bf9bed4ed87c1796a6af2c6d0a6d95086fb4c971941306810f30849d3f5
+DIST CQRlib-1.1.3.tar.gz 93987 SHA256 90ecd9aabfb72e55e56957c7b233910d18b8c2bb522a8e59eddbcc4618c72d0e SHA512 49ee134171bc4736513556781cc978599a3017c0692cf48fba876b2cf8d846ff9b1bbce41c0beba3836701de0dc00d987142253683cd9c1da71586435a5c4010 WHIRLPOOL 244be95a8f2d73a62010c03b6ceb587fd9265c5144ff3e47c81965f65adc655394a45800aacd2ceb75c54fe4943ab31739344dee8ea29d67fbdc47273136ee1a
diff --git a/sci-libs/cqrlib/cqrlib-1.1.3.ebuild b/sci-libs/cqrlib/cqrlib-1.1.3.ebuild
new file mode 100644
index 000000000000..1fc9f13fb8bf
--- /dev/null
+++ b/sci-libs/cqrlib/cqrlib-1.1.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+MY_PN=CQRlib
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Utility library for quaternion arithmetic / rotation math (ANSI C implemented)"
+HOMEPAGE="http://cqrlib.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-libs/cvector"
+DEPEND="${RDEPEND}"
+
+DOCS=( README_CQRlib.txt )
+HTML_DOCS=( README_CQRlib.html )
+PATCHES=( "${FILESDIR}"/1.0.6-gentoo.patch )
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ default
+ sed "s:GENTOOLIBDIR:$(get_libdir):g" -i Makefile || die
+ append-cflags -std=c90
+ append-cxxflags -std=c++98
+}
+
+src_compile() {
+ emake \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX) \
+ CFLAGS="${CFLAGS}" \
+ CPPFLAGS="${CXXFLAGS} -DCQR_NOCCODE=1" \
+ all
+}
+
+src_test() {
+ emake -j1 \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX) \
+ CFLAGS="${CFLAGS}" \
+ tests
+}
+
+src_install() {
+ emake -j1 DESTDIR="${ED}" install
+ einstalldocs
+
+ find "${D}" -name '*.la' -delete || die
+}