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 /media-libs/leptonica
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 'media-libs/leptonica')
-rw-r--r--media-libs/leptonica/Manifest2
-rw-r--r--media-libs/leptonica/files/leptonica-1.71-fix-openjpeg-test.patch15
-rw-r--r--media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch26
-rw-r--r--media-libs/leptonica/leptonica-1.71-r1.ebuild72
-rw-r--r--media-libs/leptonica/leptonica-1.71.ebuild62
-rw-r--r--media-libs/leptonica/leptonica-1.72-r2.ebuild58
-rw-r--r--media-libs/leptonica/metadata.xml17
7 files changed, 252 insertions, 0 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest
new file mode 100644
index 000000000000..35f963e9d88c
--- /dev/null
+++ b/media-libs/leptonica/Manifest
@@ -0,0 +1,2 @@
+DIST leptonica-1.71.tar.gz 10212309 SHA256 cc5d736e81496eb25e195f380f553537e0410c3f7151a778b2a546e35c7eb848 SHA512 fd02eec19a442d767ba39ce01132ef1304a977e038bdbf64ec5e763607d51adf1c06aaa687fc3ec542854e535618b6da2042f10709286c2e1d236e43d77efd51 WHIRLPOOL 5a3d57735e8e36785dea9a481a602b0f812c08bab5e42ebaac2e3fa2d42a0c8c697a61351ec1122a14fd9f471945c200a1c75015bd35b043fd208a1cad079733
+DIST leptonica-1.72.tar.gz 10580170 SHA256 79d5eadd32658c9fea38700c975d60aa3d088eaa3e307659f004d40834de1f56 SHA512 8cb7acade68fbd9239dee4c24c5f35fd4cbb4db9e36fbf596478bd1e4635e45034664a16cec21c084091fbad64b4b6e78a4cb43fda8d0c0fc32f55a8cbf110d2 WHIRLPOOL b494b2ef928d1c1bd0b142e81c1cccf6312ee5b9822909506b1e9c7c9f57bebba5a7d824efdbde5e85e6dadb974775c9e7c5a7cdd2fc2f9466703e68694d471a
diff --git a/media-libs/leptonica/files/leptonica-1.71-fix-openjpeg-test.patch b/media-libs/leptonica/files/leptonica-1.71-fix-openjpeg-test.patch
new file mode 100644
index 000000000000..f7d18a24adce
--- /dev/null
+++ b/media-libs/leptonica/files/leptonica-1.71-fix-openjpeg-test.patch
@@ -0,0 +1,15 @@
+--- leptonica-1.71.orig/configure.ac 2014-08-31 14:33:16.834598973 +0200
++++ leptonica-1.71/configure.ac 2014-09-01 10:56:59.394975447 +0200
+@@ -78,10 +78,10 @@
+ )
+ )
+
+-AS_IF([test "x$with_libopenjp2" != xno],
++AS_IF([test "x$with_libopenjpeg" != xno],
+ AC_CHECK_LIB([openjp2], [opj_create_decompress],
+ AC_DEFINE([HAVE_LIBJP2K], 1, [Define to 1 if you have libopenjp2.]) AC_SUBST([LIBJP2K_LIBS], [-lopenjp2]),
+- AS_IF([test "x$with_libopenjp2" = xyes], AC_MSG_ERROR([libopenjp2 support requested but library not found]))
++ AS_IF([test "x$with_libopenjpeg" = xyes], AC_MSG_ERROR([libopenjp2 support requested but library not found]))
+ )
+ )
+
diff --git a/media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch b/media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch
new file mode 100644
index 000000000000..ed855729f1f6
--- /dev/null
+++ b/media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch
@@ -0,0 +1,26 @@
+Better use `pkg-config --cflags libopenjp2`
+
+Michael Weber, xmw@gentoo.org
+
+--- leptonica-1.71/src/libversions.c
++++ leptonica-1.71/src/libversions.c
+@@ -69,7 +69,7 @@
+ #endif
+
+ #if HAVE_LIBJP2K /* assuming it's 2.1 */
+-#include "openjpeg-2.1/openjpeg.h"
++#include "openjpeg-2.0/openjpeg.h"
+ #endif
+
+ #define stringJoinInPlace(s1, s2) \
+--- leptonica-1.71/src/jp2kio.c
++++ leptonica-1.71/src/jp2kio.c
+@@ -108,7 +108,7 @@
+
+ /* Leptonica supports both 2.0 and 2.1. If you have 2.0,
+ * change MINOR to 0. */
+-#define MINOR 1
++#define MINOR 0
+
+ #if MINOR == 0
+ static const l_int32 OpjMinor = 0;
diff --git a/media-libs/leptonica/leptonica-1.71-r1.ebuild b/media-libs/leptonica/leptonica-1.71-r1.ebuild
new file mode 100644
index 000000000000..422c0612704b
--- /dev/null
+++ b/media-libs/leptonica/leptonica-1.71-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF="1"
+inherit eutils autotools-utils
+
+DESCRIPTION="C library for image processing and analysis"
+HOMEPAGE="http://code.google.com/p/leptonica/"
+SRC_URI="http://www.leptonica.com/source/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~mips ~ppc ~ppc64 ~sparc x86"
+IUSE="gif jpeg jpeg2k png tiff webp utils zlib static-libs test"
+
+# N.b. Tests need all tested features enabled:
+REQUIRED_USE="test? ( gif jpeg jpeg2k png tiff webp )"
+
+DEPEND="gif? ( media-libs/giflib )
+ jpeg? ( virtual/jpeg )
+ jpeg2k? ( media-libs/openjpeg:2= )
+ png? ( media-libs/libpng
+ sys-libs/zlib
+ )
+ tiff? ( media-libs/tiff )
+ webp? ( media-libs/libwebp )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+DOCS=( README version-notes )
+PATCHES=( "${FILESDIR}"/"${P}"-fix-openjpeg-test.patch )
+
+src_prepare() {
+ if has_version "=media-libs/openjpeg-2.0.0" ; then
+ epatch "${FILESDIR}"/"${P}"-openjpeg-2.0.patch
+ fi
+
+ # unhtmlize docs
+ local X
+ for X in ${DOCS[@]}; do
+ awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
+ "${X}.html" > "${X}" || die 'awk failed'
+ rm -f -- "${X}.html"
+ done
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ # $(use_with webp libwebp) -> unknown
+ # so use-flag just for pulling dependencies
+ # zlib handling see bug 454890
+ local myeconfargs=(
+ $(use_with gif giflib)
+ $(use_with jpeg)
+ $(use_with jpeg2k libopenjpeg)
+ $(use_with png libpng)
+ $(use_with tiff libtiff)
+ $(use_enable utils programs)
+ $(use_enable static-libs static)
+ )
+ # libpng requires zlib:
+ if use png && ! use zlib ; then
+ # Ignore users non-sensical choice of -zlib
+ myeconfargs+=("--with-zlib")
+ else
+ myeconfargs+=( $(use_with zlib) )
+ fi
+ autotools-utils_src_configure
+}
diff --git a/media-libs/leptonica/leptonica-1.71.ebuild b/media-libs/leptonica/leptonica-1.71.ebuild
new file mode 100644
index 000000000000..f9ab57c804bc
--- /dev/null
+++ b/media-libs/leptonica/leptonica-1.71.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils autotools-utils
+
+DESCRIPTION="C library for image processing and analysis"
+HOMEPAGE="http://code.google.com/p/leptonica/"
+SRC_URI="http://www.leptonica.com/source/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~mips ppc ppc64 ~sparc x86"
+IUSE="gif jpeg jpeg2k png tiff webp utils zlib static-libs"
+
+DEPEND="gif? ( media-libs/giflib )
+ jpeg? ( virtual/jpeg )
+ jpeg2k? ( >=media-libs/openjpeg-2.1 )
+ !jpeg2k? ( !<media-libs/openjpeg-2.1 )
+ png? ( media-libs/libpng )
+ tiff? ( media-libs/tiff )
+ webp? ( media-libs/libwebp )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+DOCS=( README version-notes )
+
+src_prepare() {
+ # unhtmlize docs
+ local X
+ for X in ${DOCS[@]}; do
+ awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
+ "${X}.html" > "${X}" || die 'awk failed'
+ rm -f -- "${X}.html"
+ done
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ # $(use_with webp libwebp) -> unknown
+ # so use-flag just for pulling dependencies
+ # zlib handling see bug 454890
+ local myeconfargs=(
+ $(use_with gif giflib)
+ $(use_with jpeg)
+ $(use_with jpeg2k libopenjpeg)
+ $(use_with png libpng)
+ $(use_with tiff libtiff)
+ $(use_enable utils programs)
+ $(use_enable static-libs static)
+ )
+ # libpng requires zlib:
+ if use png && ! use zlib ; then
+ # Ignore users non-sensical choice of -zlib
+ myeconfargs+=("--with-zlib")
+ else
+ myeconfargs+=( $(use_with zlib) )
+ fi
+ autotools-utils_src_configure
+}
diff --git a/media-libs/leptonica/leptonica-1.72-r2.ebuild b/media-libs/leptonica/leptonica-1.72-r2.ebuild
new file mode 100644
index 000000000000..4a9e722168fd
--- /dev/null
+++ b/media-libs/leptonica/leptonica-1.72-r2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-multilib
+
+DESCRIPTION="C library for image processing and analysis"
+HOMEPAGE="http://code.google.com/p/leptonica/"
+SRC_URI="http://www.leptonica.com/source/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib"
+
+# N.B. Tests need some features enabled:
+REQUIRED_USE="test? ( jpeg png tiff )"
+
+DEPEND="gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] )
+ jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
+ jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] )
+ png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}]
+ sys-libs/zlib:=[${MULTILIB_USEDEP}] )
+ tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+DOCS=( README version-notes )
+
+src_prepare() {
+ # unhtmlize docs
+ local X
+ for X in ${DOCS[@]}; do
+ awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
+ "${X}.html" > "${X}" || die 'awk failed'
+ rm -f -- "${X}.html"
+ done
+
+ autotools-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_with gif giflib)
+ $(use_with jpeg)
+ $(use_with jpeg2k libopenjpeg)
+ $(use_with png libpng)
+ $(use_with tiff libtiff)
+ $(use_with webp libwebp)
+ $(use_with zlib)
+ $(use_enable static-libs static)
+ $(multilib_native_use_enable utils programs)
+ )
+ autotools-utils_src_configure
+}
diff --git a/media-libs/leptonica/metadata.xml b/media-libs/leptonica/metadata.xml
new file mode 100644
index 000000000000..3f7ef2924819
--- /dev/null
+++ b/media-libs/leptonica/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chewi@gentoo.org</email>
+ <name>James Le Cuirot</name>
+ </maintainer>
+ <use>
+ <flag name="webp">Adds support for the WebP image format</flag>
+ <flag name="utils">Install command-line utilities</flag>
+ </use>
+ <longdescription>
+ Leptonica is a pedagogically-oriented open source site
+ containing software that is broadly useful for image
+ processing and image analysis applications.
+ </longdescription>
+</pkgmetadata>