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 /dev-libs/tvmet
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 'dev-libs/tvmet')
-rw-r--r--dev-libs/tvmet/Manifest1
-rw-r--r--dev-libs/tvmet/files/1.7.2-docs_missing_destdir.patch29
-rw-r--r--dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch42
-rw-r--r--dev-libs/tvmet/metadata.xml8
-rw-r--r--dev-libs/tvmet/tvmet-1.7.2-r2.ebuild53
5 files changed, 133 insertions, 0 deletions
diff --git a/dev-libs/tvmet/Manifest b/dev-libs/tvmet/Manifest
new file mode 100644
index 000000000000..f0ec4c1ccc7a
--- /dev/null
+++ b/dev-libs/tvmet/Manifest
@@ -0,0 +1 @@
+DIST tvmet-1.7.2.tar.bz2 532599 SHA256 ca4a1e72afb70ca34bbd7cb0500a159003f5c270903f1b303af48a883dbe13ae SHA512 0e57d2ec68566d02c09c3d8b35662b3737e6f074271e5e90c1354956636d2ada74859bb867d63684edaa93d7ab6a470a3141d02a04164101ff9d8d14f3d6c5fb WHIRLPOOL 049901010e48647278c73e315eda041f3f51c4a0933128d8bc24cbd8cbbdc0d166502a2d192f6d47df9f20fe33b32a78f6c02b2cd72897822d88dbae0bbb3c44
diff --git a/dev-libs/tvmet/files/1.7.2-docs_missing_destdir.patch b/dev-libs/tvmet/files/1.7.2-docs_missing_destdir.patch
new file mode 100644
index 000000000000..d591677b99c4
--- /dev/null
+++ b/dev-libs/tvmet/files/1.7.2-docs_missing_destdir.patch
@@ -0,0 +1,29 @@
+--- tvmet-1.7.2.orig/doc/Makefile.in 2007-06-23 18:00:27.000000000 +0200
++++ tvmet-1.7.2/doc/Makefile.in 2008-06-07 16:47:29.000000000 +0200
+@@ -667,20 +680,20 @@
+ # Automake's "distcheck" is sensitive to having files left over
+ # after "make uninstall", so we have to clean up the install hook.
+ @CONFIG_DOC_TRUE@uninstall-local:
+-@CONFIG_DOC_TRUE@ @if test -d $(TVMET_DOC_DIR); then \
+-@CONFIG_DOC_TRUE@ rm -rf $(TVMET_DOC_DIR); \
++@CONFIG_DOC_TRUE@ @if test -d $(DESTDIR)/$(TVMET_DOC_DIR)/html; then \
++@CONFIG_DOC_TRUE@ rm -rf $(DESTDIR)/$(TVMET_DOC_DIR)/html; \
+ @CONFIG_DOC_TRUE@ fi
+
+ # Install hooks
+ @CONFIG_DOC_TRUE@make-install-dirs:
+-@CONFIG_DOC_TRUE@ @if test '!' -d $(TVMET_DOC_DIR); then \
+-@CONFIG_DOC_TRUE@ $(mkinstalldirs) $(TVMET_DOC_DIR); \
++@CONFIG_DOC_TRUE@ @if test '!' -d $(DESTDIR)/$(TVMET_DOC_DIR)/html; then \
++@CONFIG_DOC_TRUE@ $(mkinstalldirs) $(DESTDIR)/$(TVMET_DOC_DIR)/html; \
+ @CONFIG_DOC_TRUE@ fi
+
+ @CONFIG_DOC_TRUE@install-data-hook: make-install-dirs
+-@CONFIG_DOC_TRUE@ @echo Installing documentations into $(TVMET_DOC_DIR)
++@CONFIG_DOC_TRUE@ @echo Installing documentations into $(DESTDIR)/$(TVMET_DOC_DIR)/html
+ @CONFIG_DOC_TRUE@ @echo "install html"
+-@CONFIG_DOC_TRUE@ @$(INSTALL_DATA) @top_builddir@/doc/html/* $(TVMET_DOC_DIR)
++@CONFIG_DOC_TRUE@ @$(INSTALL_DATA) @top_builddir@/doc/html/* $(DESTDIR)/$(TVMET_DOC_DIR)/html
+
+ @CONFIG_DOC_FALSE@doc-dist:
+ @CONFIG_DOC_FALSE@install-data-hook:
diff --git a/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch b/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch
new file mode 100644
index 000000000000..2749c9131349
--- /dev/null
+++ b/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch
@@ -0,0 +1,42 @@
+diff -ur tvmet-1.7.2-orig/configure tvmet-1.7.2/configure
+--- tvmet-1.7.2-orig/configure 2009-04-19 16:27:20.000000000 -0400
++++ tvmet-1.7.2/configure 2009-04-19 16:48:52.000000000 -0400
+@@ -2659,11 +2659,9 @@
+ ;;
+ *:*) # Simple initialization syntax
+ CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'`
+- CXXFLAGS=""
+ ;;
+ *) # Default values
+ CXX="g++"
+- CXXFLAGS=""
+ ;;
+ esac
+ CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O2 -finline-limit=5000 -ftemplate-depth-200 -fomit-frame-pointer"
+@@ -3704,7 +3702,6 @@
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+- CXXFLAGS=""
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -3799,15 +3796,9 @@
+ CXXFLAGS=$ac_save_CXXFLAGS
+ elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
+- CXXFLAGS="-g -O2"
++ CXXFLAGS+="$CXXFLAGS -g -O2"
+ else
+- CXXFLAGS="-g"
+- fi
+-else
+- if test "$GXX" = yes; then
+- CXXFLAGS="-O2"
+- else
+- CXXFLAGS=
++ CXXFLAGS+="$CXXFLAGS -g"
+ fi
+ fi
+ ac_ext=cpp
+
diff --git a/dev-libs/tvmet/metadata.xml b/dev-libs/tvmet/metadata.xml
new file mode 100644
index 000000000000..f33bab03deb3
--- /dev/null
+++ b/dev-libs/tvmet/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>cpp</herd>
+ <upstream>
+ <remote-id type="sourceforge">tvmet</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/tvmet/tvmet-1.7.2-r2.ebuild b/dev-libs/tvmet/tvmet-1.7.2-r2.ebuild
new file mode 100644
index 000000000000..6eb010b085d1
--- /dev/null
+++ b/dev-libs/tvmet/tvmet-1.7.2-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Tiny Vector Matrix library using Expression Templates"
+HOMEPAGE="http://tvmet.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc test"
+
+DEPEND="doc? ( app-doc/doxygen )
+ test? ( dev-util/cppunit )"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-respect-cxxflags.patch"
+
+ sed -i \
+ -e 's|^GENERATE_LATEX.*|GENERATE_LATEX = NO|' \
+ doc/Doxyfile.in || die "sed failed"
+
+ # Doc installation is broken with newer Doxygen and autoconf <=2.61
+ # and we can't rerun autoconf without requiring cppunit unconditionally
+ sed -i \
+ -e '/^SUBDIRS/ s|doc ||' \
+ Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable doc docs) \
+ $(use_enable test cppunit)
+}
+
+src_compile() {
+ default
+ if use doc ; then
+ cd doc
+ doxygen Doxyfile || die "doxygen failed"
+ fi
+}
+
+src_install() {
+ default
+ use doc && dohtml -r doc/html/*
+}