diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/libofa | |
download | gentoo-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 'media-libs/libofa')
-rw-r--r-- | media-libs/libofa/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch | 11 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch | 35 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch | 10 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch | 22 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.patch | 39 | ||||
-rw-r--r-- | media-libs/libofa/libofa-0.9.3-r1.ebuild | 55 | ||||
-rw-r--r-- | media-libs/libofa/metadata.xml | 8 |
8 files changed, 181 insertions, 0 deletions
diff --git a/media-libs/libofa/Manifest b/media-libs/libofa/Manifest new file mode 100644 index 000000000000..b99737bdec44 --- /dev/null +++ b/media-libs/libofa/Manifest @@ -0,0 +1 @@ +DIST libofa-0.9.3.tar.gz 384043 SHA256 0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0 SHA512 058fb43ea296325d2f7ad1762e1fd3f2ad772754b5d53dbaa1c5cd91ac5041ef82c7ea9ac580825e2391fa7db6803ff7fd5b24faf319280211a4641516126967 WHIRLPOOL bc9adb3346cbb017e6d50364d4710b03c0dd5c48556ac636484fc2ed663a3fa72f93d86317087a50baf2b04d9c516c02688215df4032db2eb435348c752a5f15 diff --git a/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch b/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch new file mode 100644 index 000000000000..d23351860ddd --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch @@ -0,0 +1,11 @@ +diff -ru libofa-0.9.3.orig//examples/protocol.cpp libofa-0.9.3//examples/protocol.cpp +--- libofa-0.9.3.orig//examples/protocol.cpp 2006-05-10 20:05:42.000000000 +0200 ++++ libofa-0.9.3//examples/protocol.cpp 2011-07-22 19:02:30.687109297 +0200 +@@ -12,7 +12,6 @@ + #include <map> + #include <expat.h> + #include <curl/curl.h> +-#include <curl/types.h> + #include <curl/easy.h> + + using namespace std; diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch new file mode 100644 index 000000000000..f68f42bfb129 --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch @@ -0,0 +1,35 @@ +diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp +--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300 ++++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -9,6 +9,8 @@ + + #include "protocol.h" + ++#include <string.h> ++ + AudioData* loadWaveFile(char *file); + AudioData* loadDataUsingLAME(char *file); + +Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig +diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp +--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300 ++++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -8,6 +8,7 @@ + -------------------------------------------------------------------*/ + #include <stdio.h> + #include <stdlib.h> ++#include <cstring> + #include <string> + #include <map> + #include <expat.h> +diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp +--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300 ++++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -12,6 +12,7 @@ + // DATE CREATED: 1/12/06 + + ++#include <cstdlib> + #include <math.h> + #include "signal_op.h" + #include "AFLIB/aflibConverter.h" diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch new file mode 100644 index 000000000000..25cab143d23f --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch @@ -0,0 +1,10 @@ +--- orig-libofa-0.9.3/examples/example.cpp 2009-04-11 12:22:55.397455430 +0200 ++++ libofa-0.9.3/examples/example.cpp 2009-04-11 12:25:21.466456955 +0200 +@@ -9,6 +9,7 @@ + + #include "protocol.h" + ++#include <stdio.h> + #include <string.h> + + AudioData* loadWaveFile(char *file); diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch new file mode 100644 index 000000000000..c5ab098767dd --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch @@ -0,0 +1,22 @@ +diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp +--- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600 ++++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600 +@@ -12,6 +12,7 @@ + #else + #include <sys/wait.h> + #endif ++#include <unistd.h> + + AudioData *loadWaveFile(char *file); + +diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp +--- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600 ++++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600 +@@ -11,6 +11,7 @@ + #include "io.h" + #endif + #include <fcntl.h> ++#include <unistd.h> + + static bool readBytes(int fd, unsigned char *buf, int size) { + int ct = 0; diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch new file mode 100644 index 000000000000..d1059bafa55f --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch @@ -0,0 +1,39 @@ +--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300 ++++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300 +@@ -20,11 +20,20 @@ + namespace TNT
+ {
+ /**
++ @returns the absolute value of a real (no-complex) scalar.
++*/
++template <class Real>
++Real abs(const Real &a)
++{
++ return (a > 0 ? a : -a);
++}
++/**
+ @returns hypotenuse of real (non-complex) scalars a and b by
+ avoiding underflow/overflow
+ using (a * sqrt( 1 + (b/a) * (b/a))), rather than
+ sqrt(a*a + b*b).
+ */
++
+ template <class Real>
+ Real hypot(const Real &a, const Real &b)
+ {
+@@ -56,15 +65,6 @@ + }
+ */
+
+-/**
+- @returns the absolute value of a real (no-complex) scalar.
+-*/
+-template <class Real>
+-Real abs(const Real &a)
+-{
+- return (a > 0 ? a : -a);
+-}
+-
+ }
+ #endif
+ /* MATH_UTILS_H */
diff --git a/media-libs/libofa/libofa-0.9.3-r1.ebuild b/media-libs/libofa/libofa-0.9.3-r1.ebuild new file mode 100644 index 000000000000..1c3b1f6bfad2 --- /dev/null +++ b/media-libs/libofa/libofa-0.9.3-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic multilib-minimal + +DESCRIPTION="Open Fingerprint Architecture" +HOMEPAGE="http://code.google.com/p/musicip-libofa/" +SRC_URI="http://musicip-libofa.googlecode.com/files/${P}.tar.gz" + +LICENSE="|| ( APL-1.0 GPL-2 )" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="dev-libs/expat + net-misc/curl + >=sci-libs/fftw-3.3.3-r2[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" +RDEPEND="${RDEPEND} + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r2 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" + +PATCHES=( + "${FILESDIR}"/${P}-gcc-4.patch + "${FILESDIR}"/${P}-gcc-4.3.patch + "${FILESDIR}"/${P}-gcc-4.4.patch + "${FILESDIR}"/${P}-gcc-4.7.patch +) + +src_prepare() { + # disable building non-installed examples + sed -i -e '/SUBDIRS/s:examples::' Makefile.{am,in} || die + + epatch "${PATCHES[@]}" + epatch_user + + is-flag -ffast-math && append-flags -fno-fast-math +} + +multilib_src_configure() { + # disable dependencies that were used for the noinst_ example only + + ECONF_SOURCE=${S} \ + econf \ + ac_cv_lib_expat_XML_ExpatVersion=yes \ + ac_cv_lib_curl_curl_global_init=yes +} + +multilib_src_install_all() { + dodoc AUTHORS README +} diff --git a/media-libs/libofa/metadata.xml b/media-libs/libofa/metadata.xml new file mode 100644 index 000000000000..1f84290ed170 --- /dev/null +++ b/media-libs/libofa/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>sound</herd> + <upstream> + <remote-id type="google-code">musicip-libofa</remote-id> + </upstream> +</pkgmetadata> |