diff options
Diffstat (limited to 'sci-libs/cqrlib')
-rw-r--r-- | sci-libs/cqrlib/Manifest | 6 | ||||
-rw-r--r-- | sci-libs/cqrlib/cqrlib-1.1.3.ebuild | 58 | ||||
-rw-r--r-- | sci-libs/cqrlib/files/1.0.6-gentoo.patch | 101 | ||||
-rw-r--r-- | sci-libs/cqrlib/metadata.xml | 11 |
4 files changed, 176 insertions, 0 deletions
diff --git a/sci-libs/cqrlib/Manifest b/sci-libs/cqrlib/Manifest new file mode 100644 index 000000000000..1f44b247c20a --- /dev/null +++ b/sci-libs/cqrlib/Manifest @@ -0,0 +1,6 @@ +AUX 1.0.6-gentoo.patch 4265 SHA256 01544406bcdc80222c696365b974fc268efad8081f105f106e493927a62c203b SHA512 9a21d5950e378d041dc5fb318debc1790701fd3a8e2f8c651c9a77b526f641c1a5a2a1615c6c3af114f1a5a6e9246b30bbd774f15fc9eeefaf154a13e561a44e WHIRLPOOL 07f2981b9677842fd4e8c3ed710b3429edd450d6669b819234e5f2055c6dea1b24fbfe3e315cbdeaa9c514f0ddc3c8625facf0cceab2c0f142c66880b97d286a +DIST CQRlib-1.1.3.tar.gz 93987 SHA256 90ecd9aabfb72e55e56957c7b233910d18b8c2bb522a8e59eddbcc4618c72d0e SHA512 49ee134171bc4736513556781cc978599a3017c0692cf48fba876b2cf8d846ff9b1bbce41c0beba3836701de0dc00d987142253683cd9c1da71586435a5c4010 WHIRLPOOL 244be95a8f2d73a62010c03b6ceb587fd9265c5144ff3e47c81965f65adc655394a45800aacd2ceb75c54fe4943ab31739344dee8ea29d67fbdc47273136ee1a +EBUILD cqrlib-1.1.3.ebuild 1128 SHA256 ec6c70f460652e154f675413c6d384de22f285af4f104d5d6b26da2a7961b9ef SHA512 6b98a0eeaa80e257bbf967c97816e58881e5ac16792d748828c3088cb8f308c021db0da984135028d6ba39752de08e978c7b9369d593605154e75190437f57f7 WHIRLPOOL e88fc1be9aa26af1d76b8135868a99d5d300d8f867c2bac54538a08836c0b8e2e3b2ac173fc757679da0eacabc2fefc1fad465dc8870a92232cd256af20b21b7 +MISC ChangeLog 3183 SHA256 c3c39bf1ba906c65fc88181b8a503fe24b2597276954c2287354f0b69452b911 SHA512 6e9280a315096c127251e3acdb891a72b3efb4561b35bf02b35c4282923b2b5a77fe52c4a810ebe5b6a42c6570a44bb884f1b6144c6f4a3b094e19b19228cf83 WHIRLPOOL f6e5808b76c4dba50b111366beb5f5bae8d34c2b3d7958a5d94a0f9519dc6f25aca6fce1124b0ea97c15ea469cda15f599aac9867c6f91e8d4cade7fd87aa16b +MISC ChangeLog-2015 3051 SHA256 0bdc4966f9564d989d5fb874255cb8afbdb0d7a677bd77f4f20a5071fc415b43 SHA512 6de3c22b80c9074d94fea09a7890721d101b4425ba8b59ae6dc43bdbaa9e2cd26a96e2a6777230fca3dbb9f1268b540c63218702f14dd8f60fee152bf4e73f72 WHIRLPOOL 863567553ab55a1fea8f274b6ab8e83dde27ba964467c8a241bfda26e8e3e1c1cb19a1911839df12e91f093af92c88fa8a5296e65eeee8f45cfcfc60f9501ff4 +MISC metadata.xml 339 SHA256 064f882dd5882dddfb4ee718e0599ee083c36b453b393d4301b9f054a62677e0 SHA512 2d9ab4b90ddfdc63db116700f54219dfead1dfee0a80816edce6dd09de412f82e251d0022c9c0cc0770bdf1d726d97ae9bf0ad7207454f2cebbca577d61c573d WHIRLPOOL 8b84a6d60fa06cb0671378ec12d2927127a003de4df54df58866236edb31fe3be9d593445a9b4ad4294218e2c09b21070ffe3e0189640fcf3236860c07469646 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..d43706733c17 --- /dev/null +++ b/sci-libs/cqrlib/cqrlib-1.1.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} 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..6973deae4ff2 --- /dev/null +++ b/sci-libs/cqrlib/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">cqrlib</remote-id> + </upstream> +</pkgmetadata> |