diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-02-03 22:12:22 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-02-03 22:12:22 +0000 |
commit | cc68e3140c3766d75afda75659d94ae13117c589 (patch) | |
tree | 7195b31a6033e88b899f7505bd6b5a079fdf5d21 /sci-libs/cqrlib | |
parent | amd64 stable, bug #290464 (diff) | |
download | gentoo-2-cc68e3140c3766d75afda75659d94ae13117c589.tar.gz gentoo-2-cc68e3140c3766d75afda75659d94ae13117c589.tar.bz2 gentoo-2-cc68e3140c3766d75afda75659d94ae13117c589.zip |
sci-libs/cqrlib added
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/cqrlib')
-rw-r--r-- | sci-libs/cqrlib/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/cqrlib/cqrlib-1.0.3.ebuild | 49 | ||||
-rw-r--r-- | sci-libs/cqrlib/files/1.0.3-LDFLAGS.patch | 17 | ||||
-rw-r--r-- | sci-libs/cqrlib/metadata.xml | 8 |
4 files changed, 85 insertions, 0 deletions
diff --git a/sci-libs/cqrlib/ChangeLog b/sci-libs/cqrlib/ChangeLog new file mode 100644 index 000000000000..223e1e5a192a --- /dev/null +++ b/sci-libs/cqrlib/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sci-libs/cqrlib +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cqrlib/ChangeLog,v 1.1 2010/02/03 22:12:21 jlec Exp $ + +*cqrlib-1.0.3 (03 Feb 2010) + + 03 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org> + +files/1.0.3-LDFLAGS.patch, +cqrlib-1.0.3.ebuild, +metadata.xml: + An ANSI C implementation of a utility library for quaternion arithmetic + and quaternion rotation math + diff --git a/sci-libs/cqrlib/cqrlib-1.0.3.ebuild b/sci-libs/cqrlib/cqrlib-1.0.3.ebuild new file mode 100644 index 000000000000..5806c662e947 --- /dev/null +++ b/sci-libs/cqrlib/cqrlib-1.0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cqrlib/cqrlib-1.0.3.ebuild,v 1.1 2010/02/03 22:12:21 jlec Exp $ + +inherit base flag-o-matic toolchain-funcs + +MY_PN=CQRlib +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="An ANSI C implementation of a utility library for quaternion arithmetic and quaternion rotation math" +HOMEPAGE="http://cqrlib.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/cvector" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MY_P} + +PATCHES=( + "${FILESDIR}"/${PV}-LDFLAGS.patch + ) + +src_compile() { + append-flags -ansi + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CFLAGS="${CFLAGS}" \ + all || die +} + +src_test() { + emake tests || die +} + +src_install() { + dobin bin/* || die + dolib.a lib/.libs/*.a || die + + insinto /usr/include + doins *.h || die + + dodoc README_CQRlib.txt || die +} diff --git a/sci-libs/cqrlib/files/1.0.3-LDFLAGS.patch b/sci-libs/cqrlib/files/1.0.3-LDFLAGS.patch new file mode 100644 index 000000000000..491eb9179aec --- /dev/null +++ b/sci-libs/cqrlib/files/1.0.3-LDFLAGS.patch @@ -0,0 +1,17 @@ +--- Makefile 2009-07-08 18:12:50.000000000 +0200 ++++ Makefile.new 2009-07-25 13:18:36.000000000 +0200 +@@ -86,10 +86,10 @@ + endif + + COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c +-LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -release $(RELEASE) -rpath $(INSTALLDIR)/lib +-BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(INCLUDES) +-BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -dynamic -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib +-BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -static -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib ++LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -release $(RELEASE) $(LDFLAGS) ++BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) ++BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -dynamic ++BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static + INSTALL_COMMAND = $(LIBTOOL) --mode=install cp + INSTALL_FINISH_COMMAND = $(LIBTOOL) --mode=finish + diff --git a/sci-libs/cqrlib/metadata.xml b/sci-libs/cqrlib/metadata.xml new file mode 100644 index 000000000000..efb490d78817 --- /dev/null +++ b/sci-libs/cqrlib/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>sci@gentoo.org</email> +</maintainer> +</pkgmetadata> |