summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/cqrlib
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/cqrlib')
-rw-r--r--sci-libs/cqrlib/Manifest1
-rw-r--r--sci-libs/cqrlib/cqrlib-1.1.2-r1.ebuild56
-rw-r--r--sci-libs/cqrlib/files/1.0.3-LDFLAGS.patch17
-rw-r--r--sci-libs/cqrlib/files/1.0.3-dynlib.patch45
-rw-r--r--sci-libs/cqrlib/files/1.0.5-gentoo.patch91
-rw-r--r--sci-libs/cqrlib/files/1.0.6-gentoo.patch101
-rw-r--r--sci-libs/cqrlib/metadata.xml8
7 files changed, 319 insertions, 0 deletions
diff --git a/sci-libs/cqrlib/Manifest b/sci-libs/cqrlib/Manifest
new file mode 100644
index 000000000000..18afb8a310d0
--- /dev/null
+++ b/sci-libs/cqrlib/Manifest
@@ -0,0 +1 @@
+DIST CQRlib-1.1.2.tar.gz 43082 SHA256 af3cf2402974579f3c6efc6a6174a5da52786db4bfee9d38d504d93bc42410fd SHA512 41510d0a03ef48385896be6695b8ca328d56dc7d0ef82db2e46108913d814d3545febe76114589ee6fa3bfad75a2832d98120ec966e052245a3b4f0e684c2b9f WHIRLPOOL 2c1de60f88b5cfb9c5e406bc2b9f93617c7ef390ae290716bcec891b17ec8388bab37bf9bed4ed87c1796a6af2c6d0a6d95086fb4c971941306810f30849d3f5
diff --git a/sci-libs/cqrlib/cqrlib-1.1.2-r1.ebuild b/sci-libs/cqrlib/cqrlib-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..24356399ef7d
--- /dev/null
+++ b/sci-libs/cqrlib/cqrlib-1.1.2-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
+
+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}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-libs/cvector"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/1.0.6-gentoo.patch
+}
+
+src_compile() {
+ sed "s:GENTOOLIBDIR:$(get_libdir):g" -i Makefile || die
+ append-flags -ansi
+ 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
+
+ rm -f "${ED}"/usr/$(get_libdir)/*.la || die
+
+ dodoc README_CQRlib.txt
+ dohtml README_CQRlib.html
+}
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/files/1.0.3-dynlib.patch b/sci-libs/cqrlib/files/1.0.3-dynlib.patch
new file mode 100644
index 000000000000..cb2a663cea2b
--- /dev/null
+++ b/sci-libs/cqrlib/files/1.0.3-dynlib.patch
@@ -0,0 +1,45 @@
+diff --git a/Makefile b/Makefile
+index e21d52e..4a22862 100644
+--- a/Makefile
++++ b/Makefile
+@@ -85,7 +85,7 @@ else
+ INCLUDES = -I$(INC)
+ endif
+
+-COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c
++COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -shared -c
+ 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
+@@ -93,8 +93,8 @@ BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -sta
+ INSTALL_COMMAND = $(LIBTOOL) --mode=install cp
+ INSTALL_FINISH_COMMAND = $(LIBTOOL) --mode=finish
+
+-OBJ_EXT = lo
+-LIB_EXT = la
++OBJ_EXT = o
++LIB_EXT = so
+
+ ######################################################################
+ # You should not need to make modifications below this line #
+@@ -178,8 +178,7 @@ default:
+ # Compile the library and examples
+ #
+ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \
+- $(LIB)/libCQRlib.$(LIB_EXT) \
+- $(BIN)/CQRlibTest
++ $(LIB)/libCQRlib.$(LIB_EXT)
+
+ install: all $(INSTALLDIR) $(INSTALLDIR)/lib $(INSTALLDIR)/include \
+ $(INC) $(LIB)/libCQRlib.$(LIB_EXT) $(INC)/cqrlib.h
+@@ -229,8 +228,8 @@ $(BIN):
+ # CQRlib library
+ #
+ $(LIB)/libCQRlib.$(LIB_EXT): $(SOURCE) $(HEADERS) $(COMMONDEP)
+- $(COMPILE_COMMAND) -c $(SOURCE)
+- $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCQRlib.$(LIB_EXT) *.$(OBJ_EXT)
++ $(CC) $(CFLAGS) -fPIC -c $(SOURCE) -o cqrlib.o -I.
++ $(CC) $(LDFLAGS) -Wl,--soname,libCQRlib.so.1 -shared -o libCQRlib.so.$(RELEASE) *.$(OBJ_EXT) -lm
+
+ #
+ # CQRlibTest example program
diff --git a/sci-libs/cqrlib/files/1.0.5-gentoo.patch b/sci-libs/cqrlib/files/1.0.5-gentoo.patch
new file mode 100644
index 000000000000..a5e7772e91ba
--- /dev/null
+++ b/sci-libs/cqrlib/files/1.0.5-gentoo.patch
@@ -0,0 +1,91 @@
+diff --git a/Makefile b/Makefile
+index ffd3114..cd9891d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -88,7 +88,7 @@ INCLUDES = -I$(INC)
+ endif
+
+ COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c
+-LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -rpath $(INSTALLDIR)/lib
++LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -shared -version-info $(VERSION) -rpath $(INSTALLDIR)/lib ${LDFLAGS}
+ 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
+@@ -194,54 +194,31 @@ default:
+ #
+ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \
+ $(LIB)/libCQRlib.$(LIB_EXT) \
+- $(BIN)/CQRlibTest $(BIN)/CPPQRTest
+
+-install: all $(INSTALLDIR) $(INSTALLDIR)/lib $(INSTALLDIR)/include \
++install: all $(DESTDIR) $(DESTDIR)/GENTOOLIBDIR $(DESTDIR)/include \
+ $(INC) $(LIB)/libCQRlib.$(LIB_EXT) $(INC)/cqrlib.h
+- $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT)
+- $(INSTALL_FINISH_COMMAND) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT)
+- -cp $(INSTALLDIR)/include/cqrlib.h $(INSTALLDIR)/include/CQRlib_old.h
+- cp $(INC)/cqrlib.h $(INSTALLDIR)/include/cqrlib.h
+- chmod 644 $(INSTALLDIR)/include/cqrlib.h
+- echo "Testing final install dynamic"
+- $(BUILD_COMMAND_DYNAMIC) $(EXAMPLES)/CQRlibTest.c \
+- -lCQRlib -lm -o $(BIN)/CQRlibTest_dynamic
+- $(BIN)/CQRlibTest_dynamic > $(TESTDATA)/CQRlibTest_dynamic.lst
+- diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
+- $(TESTDATA)/CQRlibTest_dynamic.lst
+- echo "Testing final install static"
+- $(BUILD_COMMAND_STATIC) $(EXAMPLES)/CQRlibTest.c \
+- -lCQRlib -lm -o $(BIN)/CQRlibTest_static
+- $(BIN)/CQRlibTest_static > $(TESTDATA)/CQRlibTest_static.lst
+- diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
+- $(TESTDATA)/CQRlibTest_static.lst
+- $(CPPBUILD_COMMAND_DYNAMIC) $(EXAMPLES)/CPPQRTest.cpp \
+- -lm -o $(BIN)/CPPQRTest_dynamic
+- $(BIN)/CPPQRTest_dynamic > $(TESTDATA)/CPPQRTest_dynamic.lst
+- diff -b -c $(TESTDATA)/CPPQRTest_orig.lst \
+- $(TESTDATA)/CPPQRTest_dynamic.lst
+- $(CPPBUILD_COMMAND_STATIC) $(EXAMPLES)/CPPQRTest.cpp \
+- -lm -o $(BIN)/CPPQRTest_static
+- $(BIN)/CPPQRTest_static > $(TESTDATA)/CPPQRTest_static.lst
+- diff -b -c $(TESTDATA)/CPPQRTest_orig.lst \
+- $(TESTDATA)/CPPQRTest_static.lst
++ $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(DESTDIR)/usr/GENTOOLIBDIR/libCQRlib.$(LIB_EXT)
++ $(INSTALL_FINISH_COMMAND) $(DESTDIR)/usr/GENTOOLIBDIR/libCQRlib.$(LIB_EXT)
++ -cp $(INSTALLDIR)/cqrlib.h $(DESTDIR)/usr/include/CQRlib.h
++ cp $(INC)/cqrlib.h $(DESTDIR)/usr/include/cqrlib.h
++ chmod 644 $(DESTDIR)/usr/include/cqrlib.h
+
+
+
+ #
+ # Directories
+ #
+-$(INSTALLDIR):
+- mkdir -p $(INSTALLDIR)
++$(DESTDIR):
++ mkdir -p $(DESTDIR)
+
+-$(INSTALLDIR)/lib: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/lib
++$(DESTDIR)/GENTOOLIBDIR: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/GENTOOLIBDIR
+
+-$(INSTALLDIR)/bin: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/bin
++$(DESTDIR)/bin: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/bin
+
+-$(INSTALLDIR)/include: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/include
++$(DESTDIR)/include: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/include
+
+
+ $(LIB):
+@@ -274,7 +251,7 @@ $(BIN)/CPPQRTest: $(EXAMPLES)/CPPQRTest.cpp
+ #
+ # Tests
+ #
+-tests: $(LIB) $(BIN) $(BIN)/CQRlibTest \
++tests: $(LIB) $(BIN) $(BIN)/CQRlibTest $(BIN)/CPPQRTest \
+ all $(TESTDATA)/CQRlibTest_orig.lst $(TESTDATA)/CPPQRTest_orig.lst
+ $(BIN)/CQRlibTest > $(TESTDATA)/CQRlibTest.lst
+ diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
diff --git a/sci-libs/cqrlib/files/1.0.6-gentoo.patch b/sci-libs/cqrlib/files/1.0.6-gentoo.patch
new file mode 100644
index 000000000000..64a8eaf3ae26
--- /dev/null
+++ b/sci-libs/cqrlib/files/1.0.6-gentoo.patch
@@ -0,0 +1,101 @@
+ Makefile | 56 +++++++++++++++++---------------------------------------
+ 1 files changed, 17 insertions(+), 39 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 9590e50..1aa14e5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -88,7 +88,7 @@ INCLUDES = -I$(INC)
+ endif
+
+ COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c
+-LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -rpath $(INSTALLDIR)/lib
++LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -shared -version-info $(VERSION) -rpath $(INSTALLDIR)/lib ${LDFLAGS}
+ 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
+@@ -196,52 +196,30 @@ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \
+ $(LIB)/libCQRlib.$(LIB_EXT) \
+ $(BIN)/CQRlibTest $(BIN)/CPPQRTest
+
+-install: all $(INSTALLDIR) $(INSTALLDIR)/lib $(INSTALLDIR)/include \
++install: all $(DESTDIR) $(DESTDIR)/GENTOOLIBDIR $(DESTDIR)/include \
+ $(INC) $(LIB)/libCQRlib.$(LIB_EXT) $(INC)/cqrlib.h
+- $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT)
+- $(INSTALL_FINISH_COMMAND) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT)
+- -cp $(INSTALLDIR)/include/cqrlib.h $(INSTALLDIR)/include/CQRlib_old.h
+- cp $(INC)/cqrlib.h $(INSTALLDIR)/include/cqrlib.h
+- chmod 644 $(INSTALLDIR)/include/cqrlib.h
+- echo "Testing final install dynamic"
+- $(BUILD_COMMAND_DYNAMIC) $(EXAMPLES)/CQRlibTest.c \
+- -lCQRlib -lm -o $(BIN)/CQRlibTest_dynamic
+- $(BIN)/CQRlibTest_dynamic > $(TESTDATA)/CQRlibTest_dynamic.lst
+- diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
+- $(TESTDATA)/CQRlibTest_dynamic.lst
+- echo "Testing final install static"
+- $(BUILD_COMMAND_STATIC) $(EXAMPLES)/CQRlibTest.c \
+- -lCQRlib -lm -o $(BIN)/CQRlibTest_static
+- $(BIN)/CQRlibTest_static > $(TESTDATA)/CQRlibTest_static.lst
+- diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
+- $(TESTDATA)/CQRlibTest_static.lst
+- $(CPPBUILD_COMMAND_DYNAMIC) $(EXAMPLES)/CPPQRTest.cpp \
+- -lm -o $(BIN)/CPPQRTest_dynamic
+- $(BIN)/CPPQRTest_dynamic > $(TESTDATA)/CPPQRTest_dynamic.lst
+- diff -b -c $(TESTDATA)/CPPQRTest_orig.lst \
+- $(TESTDATA)/CPPQRTest_dynamic.lst
+- $(CPPBUILD_COMMAND_STATIC) $(EXAMPLES)/CPPQRTest.cpp \
+- -lm -o $(BIN)/CPPQRTest_static
+- $(BIN)/CPPQRTest_static > $(TESTDATA)/CPPQRTest_static.lst
+- diff -b -c $(TESTDATA)/CPPQRTest_orig.lst \
+- $(TESTDATA)/CPPQRTest_static.lst
++ $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(DESTDIR)/usr/GENTOOLIBDIR/libCQRlib.$(LIB_EXT)
++ $(INSTALL_FINISH_COMMAND) $(DESTDIR)/usr/GENTOOLIBDIR/libCQRlib.$(LIB_EXT)
++ -cp $(INSTALLDIR)/cqrlib.h $(DESTDIR)/usr/include/CQRlib.h
++ cp $(INC)/cqrlib.h $(DESTDIR)/usr/include/cqrlib.h
++ chmod 644 $(DESTDIR)/usr/include/cqrlib.h
+
+
+
+ #
+ # Directories
+ #
+-$(INSTALLDIR):
+- mkdir -p $(INSTALLDIR)
++$(DESTDIR):
++ mkdir -p $(DESTDIR)
+
+-$(INSTALLDIR)/lib: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/lib
++$(DESTDIR)/GENTOOLIBDIR: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/GENTOOLIBDIR
+
+-$(INSTALLDIR)/bin: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/bin
++$(DESTDIR)/bin: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/bin
+
+-$(INSTALLDIR)/include: $(INSTALLDIR)
+- mkdir -p $(INSTALLDIR)/include
++$(DESTDIR)/include: $(DESTDIR)
++ mkdir -p $(DESTDIR)/usr/include
+
+
+ $(LIB):
+@@ -255,7 +233,7 @@ $(BIN):
+ #
+ $(LIB)/libCQRlib.$(LIB_EXT): $(SOURCE) $(HEADERS) $(COMMONDEP)
+ $(COMPILE_COMMAND) -c $(SOURCE)
+- $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCQRlib.$(LIB_EXT) *.$(OBJ_EXT)
++ $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCQRlib.$(LIB_EXT) *.$(OBJ_EXT) -lm
+
+ #
+ # CQRlibTest example program
+@@ -274,7 +252,7 @@ $(BIN)/CPPQRTest: $(EXAMPLES)/CPPQRTest.cpp
+ #
+ # Tests
+ #
+-tests: $(LIB) $(BIN) $(BIN)/CQRlibTest \
++tests: $(LIB) $(BIN) $(BIN)/CQRlibTest $(BIN)/CPPQRTest \
+ all $(TESTDATA)/CQRlibTest_orig.lst $(TESTDATA)/CPPQRTest_orig.lst
+ $(BIN)/CQRlibTest > $(TESTDATA)/CQRlibTest.lst
+ diff -b -c $(TESTDATA)/CQRlibTest_orig.lst \
diff --git a/sci-libs/cqrlib/metadata.xml b/sci-libs/cqrlib/metadata.xml
new file mode 100644
index 000000000000..6092f303ad7e
--- /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>
+ <upstream>
+ <remote-id type="sourceforge">cqrlib</remote-id>
+ </upstream>
+</pkgmetadata>