diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libcaca |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libcaca')
-rw-r--r-- | media-libs/libcaca/Manifest | 9 | ||||
-rw-r--r-- | media-libs/libcaca/files/libcaca-0.99_beta18-fix-tests.patch | 61 | ||||
-rw-r--r-- | media-libs/libcaca/files/libcaca-0.99_beta18-latex_hacks.patch | 14 | ||||
-rw-r--r-- | media-libs/libcaca/libcaca-0.99_beta18-r2.ebuild | 137 | ||||
-rw-r--r-- | media-libs/libcaca/libcaca-0.99_beta19.ebuild | 150 | ||||
-rw-r--r-- | media-libs/libcaca/metadata.xml | 7 |
6 files changed, 378 insertions, 0 deletions
diff --git a/media-libs/libcaca/Manifest b/media-libs/libcaca/Manifest new file mode 100644 index 000000000000..b351f4b160c5 --- /dev/null +++ b/media-libs/libcaca/Manifest @@ -0,0 +1,9 @@ +AUX libcaca-0.99_beta18-fix-tests.patch 1874 SHA256 4526b44c79e194d61fbb86957bdb3b4f6453109a396bb969df675e9a359b8905 SHA512 1a10f0c4b006684471505b35bbe0369e6928c2dfc01e9d8c8ed706d9dc6890035c1fbf509e4a02c6030f0af382a982616c83128b92a2b5574a99e0963ae6b20f WHIRLPOOL b5c8e61bf66d56829ce7a9cdfa3ffb5e92967f2da446c1f0454815406b7e195d13363663a3d5a2ac7145dd6c07b9e360855a8c1df5a118eedad8c37250515434 +AUX libcaca-0.99_beta18-latex_hacks.patch 641 SHA256 859186308ef3ceee830f6d37200c76f443523f02a546e0976063bfa742bd5f6c SHA512 66d878696ae237310cea20e3bd5802afce6fa94f66b07c1660456d17a33218a93e3aea6bcaf99bfada67bef6857089559aa48068a1761e7fe439a81d82a1ab6b WHIRLPOOL e19d7f278f57226d2a6a23a4cabee84db3557acadbc28c9736ededb96e3cbe0d73cf418017974aa8b76236207d854ec84260a3b383dec38d4c99d00be81ff937 +DIST libcaca-0.99.beta18.tar.gz 1168552 SHA256 77ea06633f4a6022dccd4f76c1823e167a40cb05308fc1c7ea0fa1f80f6c33a1 SHA512 b2a8264ec36b74a01ff415a1fd7cb1806c76e28795b73607d4f8fa5ed5cc776b215f2817f45f06c672688f010622ee5c5e2f9dc4d0c43417dedbff545d575ca5 WHIRLPOOL 3e6404f0d16ca5718022a919c1568b0e8afaa40d58ca4a1e3271c437bebd3cde40ac63f45c6bbfea00a4936a673c24bdd21ecc0070f4814464d787dab33c183b +DIST libcaca-0.99.beta19.tar.gz 1203495 SHA256 128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4 SHA512 780fc7684d40207cc10df3f87d6d8f1d47ddfffa0e76e41a5ce671b82d5c7f090facb054c3d49ca7c4ea1a619625bb9085ce52f837f50792b4a2d776a4c68e15 WHIRLPOOL 5e0e72543aab79f39c063ab67396ec5e31610c4cffade8c33f5f54e75ccb2ced561da194d287d4857cb712b6cd813bc1430197cc101ca675a441b7ea74d44839 +EBUILD libcaca-0.99_beta18-r2.ebuild 3770 SHA256 3cd500368de49b947bea475bea4ed700d9099b235d27525b8542dc858ca66dcf SHA512 0146860a8f47f143c45f9f73d6dfd626be0be71e2a9264eac115e22a29605a4ad10fbbee38a610a75920f0228e8102ecdf0fd209b87c80c398a0f5f5a6925a89 WHIRLPOOL bb1b487917cb9492c796c3c9b313dda048b6971c562eed96818ffdab1322026a42d56fc45a92ba2d1ca5497ad2dbd1972cac59c6cda2648fee467f38a1b80d87 +EBUILD libcaca-0.99_beta19.ebuild 4107 SHA256 02c626bffe070eddd087231c99936a0965acefa872a39dbdf716314cd8f6a106 SHA512 ed8fb1b5245eba23f0c1ea78bde867a3f1da2b077d1aa78bfff480519740e9674e4557c4f4c2cb448afb8165ee273930aac0b167847627d9c467cda02fe42070 WHIRLPOOL c58a3721abf06eeae964a512db3c7d6260d787dabb6ad4a87aad492c2cd20022c9e88425518a8aa4c02907f27a2a9d94284c5adf181460e0f2a23c68eb5fb0c8 +MISC ChangeLog 3097 SHA256 cd6457f5abdfd24c96a83afd871ea1faf713de3360e1d45b876ff42b84601cb7 SHA512 a3d1a19b7b297377e0f509b2a500239679dc2b2d6db6a822fb9439f9c96d6921cf11c11854eb6f3a7254c72148eb674ab9d8b5002796cacc9e6c84a829b4cd73 WHIRLPOOL 57d922a25c522414ce6de25291ce679ba85dbe7784b6209f477231cb5daacacc0cdd257ac15bf332bfb11d0128e495e84621d4af92fc6380ce23ad92ec28faa8 +MISC ChangeLog-2015 19114 SHA256 ac632548efcb3ebd1e600f0da92b84e653aa4c02cb62c4128f1afae9381efdeb SHA512 dd8b6615147e5eccdc394aea425080ef0bc09a7ff22cee85b2d3b84609ef7f399cb3c4683d486be4dc73c0e299c5bc756eb372cc2af2891d18ed5c05ed2fd16c WHIRLPOOL 9a994d4366ffca62d899140359e7f61611ddf22c87e94e039258934e7a0e7330e1e041482532c38cfe880ab9cac77833cbdc55db9bb2265b69ef3f4d7cc8f647 +MISC metadata.xml 219 SHA256 4246299710294d9f4c0c15b97e8ae7925e01785b962551c6aa27174e99980bcd SHA512 24793c7fd0e2cef8fa5a0efd9bd55fed1e62ff6810199a969d4c0b869bac9b9ec79b288105b73b1b99734320bb13569a8ee00516b5452dd67d91d14dd17038e2 WHIRLPOOL e7f42aba21f5637bb8774cc17a488ecca121e56d5e855a3e956792955b8253f3049e08b2ab258728002263967db02e27914c82ecafee07a6d317bf857d13095f diff --git a/media-libs/libcaca/files/libcaca-0.99_beta18-fix-tests.patch b/media-libs/libcaca/files/libcaca-0.99_beta18-fix-tests.patch new file mode 100644 index 000000000000..f9ff8090c215 --- /dev/null +++ b/media-libs/libcaca/files/libcaca-0.99_beta18-fix-tests.patch @@ -0,0 +1,61 @@ +--- test/Makefile.am ++++ test/Makefile.am +@@ -1,3 +1,5 @@ ++AM_TESTS_ENVIRONMENT = \ ++ top_srcdir="$(top_srcdir)" + + AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca + +--- test/check-copyright ++++ test/check-copyright +@@ -3,10 +3,11 @@ + # + # Check that the copyright information is valid + # ++echo "top srcdir: ${top_srcdir:=..}" + nfails=0 + nfiles=0 + for dir in $(make -s echo-dirs -C ..); do +- if [ ! -d "../$dir" ]; then continue; fi ++ if [ ! -d "$top_srcdir/$dir" ]; then continue; fi + for x in $(make -s echo-sources -C ../$dir); do + case "$x" in + *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl) +@@ -14,7 +15,7 @@ + *) + continue ;; + esac +- if ! grep 'Copyright *([cC])' "../$dir/$x" >/dev/null 2>&1; then ++ if ! grep 'Copyright *([cC])' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then + echo "error: $dir/$x lacks proper copyright information" + nfails=$(($nfails + 1)) + elif [ -d ../.git ]; then +--- test/check-source ++++ test/check-source +@@ -3,6 +3,7 @@ + # + # Check that we have no tabs or trailing spaces in the source code + # ++echo "top srcdir: ${top_srcdir:=..}" + nfails=0 + nfiles=0 + nlines=0 +@@ -12,15 +13,15 @@ + case "$x" in + *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|*.py|*.pl) + nfiles=$(($nfiles + 1)); +- nlines=$(($nlines + `grep -c . "../$dir/$x"`)) ;; ++ nlines=$(($nlines + `grep -c . "$top_srcdir/$dir/$x"`)) ;; + *) + continue ;; + esac +- if grep '[[:space:]]$' "../$dir/$x" >/dev/null 2>&1; then ++ if grep '[[:space:]]$' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then + echo "error: $dir/$x contains trailing spaces" + nfails=$(($nfails + 1)) + fi +- if grep ' ' "../$dir/$x" >/dev/null 2>&1; then ++ if grep ' ' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then + echo "error: $dir/$x contains tabs" + nfails=$(($nfails + 1)) + fi diff --git a/media-libs/libcaca/files/libcaca-0.99_beta18-latex_hacks.patch b/media-libs/libcaca/files/libcaca-0.99_beta18-latex_hacks.patch new file mode 100644 index 000000000000..060822e6dcc7 --- /dev/null +++ b/media-libs/libcaca/files/libcaca-0.99_beta18-latex_hacks.patch @@ -0,0 +1,14 @@ +Hack it a bit differently so that it works with texlive 2013, see http://bugs.gentoo.org/480862 +Turns out this patch is required also for texlive 2012, see http://bugs.gentoo.org/517474 + +--- doc/Makefile.am ++++ doc/Makefile.am +@@ -29,7 +29,7 @@ if BUILD_DOCUMENTATION + if USE_LATEX + rm -f latex/libcaca.tex latex/libcaca.pdf + mv latex/refman.tex latex/libcaca.tex +- sed 's/setlength{/renewcommand{/' latex/libcaca.tex \ ++ sed 's/\\setlength{/%\0/' latex/libcaca.tex \ + | sed 's/.*usepackage.*times.*//' > latex/refman.tex + cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1) + mv latex/refman.pdf latex/libcaca.pdf diff --git a/media-libs/libcaca/libcaca-0.99_beta18-r2.ebuild b/media-libs/libcaca/libcaca-0.99_beta18-r2.ebuild new file mode 100644 index 000000000000..131cf1d73ae2 --- /dev/null +++ b/media-libs/libcaca/libcaca-0.99_beta18-r2.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit autotools eutils flag-o-matic mono multilib java-pkg-opt-2 python-single-r1 multilib-minimal + +MY_P=${P/_/.} +DESCRIPTION="A library that creates colored ASCII-art graphics" +HOMEPAGE="http://libcaca.zoy.org/" +SRC_URI="http://libcaca.zoy.org/files/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2 ISC LGPL-2.1 WTFPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype X" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND="imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] ) + mono? ( dev-lang/mono ) + ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] ) + opengl? ( + >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + >=media-libs/freeglut-2.8.1[${MULTILIB_USEDEP}] + truetype? ( >=media-libs/ftgl-2.1.3_rc5 ) + ) + python? ( ${PYTHON_DEPS} ) + ruby? ( =dev-lang/ruby-1.8* ) + slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] ) + X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )" +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.5 )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + virtual/latex-base + >=dev-texlive/texlive-fontsrecommended-2012 + >=dev-texlive/texlive-latexextra-2012 + dev-tex/xcolor + ) + java? ( >=virtual/jdk-1.5 ) + test? ( dev-util/cppunit )" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + sed -i -e '/doxygen_tests = check-doxygen/d' test/Makefile.am || die #339962 + + sed -i \ + -e 's:-g -O2 -fno-strength-reduce -fomit-frame-pointer::' \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ + configure.ac || die + + sed -i \ + -e 's:$(JAVAC):$(JAVAC) $(JAVACFLAGS):' \ + -e 's:libcaca_java_la_CPPFLAGS =:libcaca_java_la_CPPFLAGS = -I$(top_srcdir)/caca:' \ + java/Makefile.am || die + + if ! use truetype; then + sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die + fi + + if use imlib && ! use X; then + append-cflags -DX_DISPLAY_MISSING + fi + + # Removed 'has_version '>=dev-texlive/texlive-latex-2013' &&' that prefixed this + # patch before wrt #517474 + epatch "${FILESDIR}"/${P}-latex_hacks.patch + + # fix out of source tests + epatch "${FILESDIR}"/${P}-fix-tests.patch + + eautoreconf + + java-pkg-opt-2_src_prepare +} + +multilib_src_configure() { + if multilib_is_native_abi; then + if use java; then + export JAVACFLAGS="$(java-pkg_javac-args)" + append-cflags "$(java-pkg_get-jni-cflags)" + fi + + use mono && export CSC="$(type -P gmcs)" #329651 + export VARTEXFONTS="${T}/fonts" #44128 + fi + + ECONF_SOURCE="${S}" \ + econf \ + $(use_enable static-libs static) \ + $(use_enable slang) \ + $(use_enable ncurses) \ + $(use_enable X x11) $(use_with X x) --x-libraries=/usr/$(get_libdir) \ + $(use_enable opengl gl) \ + $(use_enable cxx) \ + $(use_enable imlib imlib2) \ + $(use_enable test cppunit) \ + $(multilib_native_use_enable java) \ + $(multilib_native_use_enable ruby) \ + $(multilib_native_use_enable python) \ + $(multilib_native_use_enable mono csharp) \ + $(multilib_native_use_enable doc) +} + +multilib_src_compile() { + local _java_makeopts + use java && _java_makeopts="-j1" #480864 + emake ${_java_makeopts} +} + +multilib_src_test() { + emake -j1 check +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi && use java; then + java-pkg_newjar java/libjava.jar + fi +} + +multilib_src_install_all() { + einstalldocs + rm -rf "${D}"/usr/share/java + prune_libtool_files --modules +} diff --git a/media-libs/libcaca/libcaca-0.99_beta19.ebuild b/media-libs/libcaca/libcaca-0.99_beta19.ebuild new file mode 100644 index 000000000000..b099168ad927 --- /dev/null +++ b/media-libs/libcaca/libcaca-0.99_beta19.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +RUBY_OPTIONAL=yes +#USE_RUBY=ruby20 + +inherit autotools ruby-ng eutils flag-o-matic mono-env multilib java-pkg-opt-2 python-single-r1 multilib-minimal + +MY_P=${P/_/.} +DESCRIPTION="A library that creates colored ASCII-art graphics" +HOMEPAGE="http://libcaca.zoy.org/" +SRC_URI="http://libcaca.zoy.org/files/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2 ISC LGPL-2.1 WTFPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype X" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" +# ruby? ( ruby_targets_${USE_RUBY} ) + +COMMON_DEPEND="imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] ) + mono? ( dev-lang/mono ) + ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] ) + opengl? ( + >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + >=media-libs/freeglut-2.8.1[${MULTILIB_USEDEP}] + truetype? ( >=media-libs/ftgl-2.1.3_rc5 ) + ) + python? ( ${PYTHON_DEPS} ) + slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] ) + X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )" +# ruby? ( $(ruby_implementations_depend) ) +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.5 )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + virtual/latex-base + >=dev-texlive/texlive-fontsrecommended-2012 + >=dev-texlive/texlive-latexextra-2012 + dev-tex/xcolor + ) + java? ( >=virtual/jdk-1.5 ) + test? ( dev-util/cppunit )" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + java-pkg-opt-2_pkg_setup + use mono && mono-env_pkg_setup +} + +src_unpack() { + default +} + +src_prepare() { + sed -i -e '/doxygen_tests = check-doxygen/d' test/Makefile.am || die #339962 + + sed -i \ + -e 's:-g -O2 -fno-strength-reduce -fomit-frame-pointer::' \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ + configure.ac || die + + sed -i \ + -e 's:$(JAVAC):$(JAVAC) $(JAVACFLAGS):' \ + -e 's:libcaca_java_la_CPPFLAGS =:libcaca_java_la_CPPFLAGS = -I$(top_srcdir)/caca:' \ + java/Makefile.am || die + + if ! use truetype; then + sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die + fi + + if use imlib && ! use X; then + append-cflags -DX_DISPLAY_MISSING + fi + + # Removed 'has_version '>=dev-texlive/texlive-latex-2013' &&' that prefixed this + # patch before wrt #517474 + epatch "${FILESDIR}"/${PN}-0.99_beta18-latex_hacks.patch + + # fix out of source tests + epatch "${FILESDIR}"/${PN}-0.99_beta18-fix-tests.patch + + eautoreconf + + java-pkg-opt-2_src_prepare +} + +multilib_src_configure() { + if multilib_is_native_abi; then + if use java; then + export JAVACFLAGS="$(java-pkg_javac-args)" + export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)" + fi + + use mono && export CSC="$(type -P gmcs)" #329651 + export VARTEXFONTS="${T}/fonts" #44128 + use ruby && use ruby_targets_${USE_RUBY} && export RUBY=$(ruby_implementation_command ${USE_RUBY}) + fi + + ECONF_SOURCE="${S}" \ + econf \ + $(use_enable static-libs static) \ + $(use_enable slang) \ + $(use_enable ncurses) \ + $(use_enable X x11) $(use_with X x) --x-libraries=/usr/$(get_libdir) \ + $(use_enable opengl gl) \ + $(use_enable cxx) \ + $(use_enable imlib imlib2) \ + $(use_enable test cppunit) \ + $(multilib_native_use_enable java) \ + $(multilib_native_use_enable ruby) \ + $(multilib_native_use_enable python) \ + $(multilib_native_use_enable mono csharp) \ + $(multilib_native_use_enable doc) +} + +multilib_src_compile() { + local _java_makeopts + use java && _java_makeopts="-j1" #480864 + emake V=1 ${_java_makeopts} +} + +multilib_src_test() { + emake V=1 -j1 check +} + +multilib_src_install() { + emake V=1 DESTDIR="${D}" install + + if multilib_is_native_abi && use java; then + java-pkg_newjar java/libjava.jar + fi +} + +multilib_src_install_all() { + einstalldocs + rm -rf "${D}"/usr/share/java + prune_libtool_files --modules +} diff --git a/media-libs/libcaca/metadata.xml b/media-libs/libcaca/metadata.xml new file mode 100644 index 000000000000..0427ec20bfd4 --- /dev/null +++ b/media-libs/libcaca/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> +<email>media-video@gentoo.org</email> +</maintainer> +</pkgmetadata> |