diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-29 19:50:41 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-29 19:50:41 +0000 |
commit | 57b92eea53c5a087f159666fac3c098f8d264592 (patch) | |
tree | e4a49a8485b13da5785b2c3e2746b2b6efcedf74 /media-gfx | |
parent | ppc/ppc64 stable wrt #384823 (diff) | |
download | gentoo-2-57b92eea53c5a087f159666fac3c098f8d264592.tar.gz gentoo-2-57b92eea53c5a087f159666fac3c098f8d264592.tar.bz2 gentoo-2-57b92eea53c5a087f159666fac3c098f8d264592.zip |
old
(Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/povray/ChangeLog | 17 | ||||
-rw-r--r-- | media-gfx/povray/files/povray-3.6.1-configure.patch | 24 | ||||
-rw-r--r-- | media-gfx/povray/files/povray-3.6.1-find-egrep.patch | 41 | ||||
-rw-r--r-- | media-gfx/povray/files/povray-3.6.1-libpng14.patch | 20 | ||||
-rw-r--r-- | media-gfx/povray/files/povray-3.6.1-use-system-libpng.patch | 51 | ||||
-rw-r--r-- | media-gfx/povray/files/povray-3.7.0_beta38-print-extend-expiration-info.patch | 12 | ||||
-rw-r--r-- | media-gfx/povray/povray-3.6.1-r4.ebuild | 91 | ||||
-rw-r--r-- | media-gfx/povray/povray-3.6.1-r6.ebuild | 92 | ||||
-rw-r--r-- | media-gfx/povray/povray-3.7.0_beta40.ebuild | 143 |
9 files changed, 16 insertions, 475 deletions
diff --git a/media-gfx/povray/ChangeLog b/media-gfx/povray/ChangeLog index e31eb33dce7d..8d67ae6576b8 100644 --- a/media-gfx/povray/ChangeLog +++ b/media-gfx/povray/ChangeLog @@ -1,6 +1,21 @@ # ChangeLog for media-gfx/povray # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.121 2011/10/29 19:49:03 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.122 2011/10/29 19:50:41 ssuominen Exp $ + + 29 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> + -povray-3.7.0_beta40.ebuild, -povray-3.6.1-r4.ebuild, -povray-3.6.1-r6.ebuild, + -files/povray-3.6.1-libpng14.patch, -files/povray-3.6.1-find-egrep.patch, + -files/povray-3.6.1-configure.patch, + -files/povray-3.7.0_beta38-print-extend-expiration-info.patch, + -files/povray-3.6.1-use-system-libpng.patch: + old + + 29 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> -povray-3.6.1-r4.ebuild, + -povray-3.6.1-r6.ebuild, -files/povray-3.6.1-configure.patch, + -files/povray-3.6.1-find-egrep.patch, -files/povray-3.6.1-libpng14.patch, + -files/povray-3.6.1-use-system-libpng.patch, -povray-3.7.0_beta40.ebuild, + -files/povray-3.7.0_beta38-print-extend-expiration-info.patch: + old 29 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> povray-3.7.0_rc3.ebuild: ppc/ppc64 stable wrt #384823 diff --git a/media-gfx/povray/files/povray-3.6.1-configure.patch b/media-gfx/povray/files/povray-3.6.1-configure.patch deleted file mode 100644 index 6cc0afa28902..000000000000 --- a/media-gfx/povray/files/povray-3.6.1-configure.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- povray-3.6.1/configure.ac 2006-01-15 20:11:41.000000000 +0000 -+++ povray-3.6.1/configure.ac 2006-01-15 20:11:19.000000000 +0000 -@@ -1051,11 +1051,19 @@ - # PPC 7400 (aka G4). To be precise, the vector instructions are new - # in the four digit model number PowerPC processors (aka G4), but gcc - # cannot (as of February 2003) use them automatically anyway! [trf] -- for pov_flags in "-mpowerpc" "-mcpu=750 -mtune=7450" "-mmultiple" "-mstring" "-mfused-madd"; do -+ if "$host" != powerpc64* ; then -+ for pov_flags in "-mpowerpc" "-mcpu=750 -mtune=7450"; do -+ POV_PROG_CXX_FLAGS([$pov_flags], -+ [if test "$subdirs"; then { POV_PROG_CC_FLAGS([$pov_flags]) }; fi] -+ ) -+ done -+ fi -+ for pov_flags in "-mmultiple" "-mstring" "-mfused-madd"; do - POV_PROG_CXX_FLAGS([$pov_flags], -- [if test "$subdirs"; then { POV_PROG_CC_FLAGS([$pov_flags]) }; fi] -+ [if test "$subdirs"; then { POV_PROG_CC_FLAGS([$pov_flags]) }; fi] - ) - done -+ - ;; - - sparc-*) diff --git a/media-gfx/povray/files/povray-3.6.1-find-egrep.patch b/media-gfx/povray/files/povray-3.6.1-find-egrep.patch deleted file mode 100644 index 290beb6d965e..000000000000 --- a/media-gfx/povray/files/povray-3.6.1-find-egrep.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- acinclude.m4 2006-11-15 15:44:46.000000000 +0000 -+++ acinclude.m4 2006-11-15 16:01:14.000000000 +0000 -@@ -95,12 +95,12 @@ - - # check for -dumpversion - AC_TRY_COMMAND([$CXX -dumpversion < /dev/null 2> /dev/null > conftest.out]) -- pov_prog_cxx_version=`cat conftest.out | $ac_cv_prog_egrep '[[0-9]]'` -+ pov_prog_cxx_version=`cat conftest.out | $EGREP '[[0-9]]'` - - # check for -v - if test -z "$pov_prog_cxx_version"; then - AC_TRY_COMMAND([$CXX -v < /dev/null 2>&1 | tr A-Z a-z > conftest.out]) -- pov_prog_cxx_version=`cat conftest.out | $ac_cv_prog_egrep "version" | sed 's,\(.*version[[[:space:]]]*\)\(.*\),\2,'` -+ pov_prog_cxx_version=`cat conftest.out | $EGREP "version" | sed 's,\(.*version[[[:space:]]]*\)\(.*\),\2,'` - fi - - # final compiler version string -@@ -155,10 +155,10 @@ - AC_TRY_COMMAND([$CXX -c conftest.$ac_ext > /dev/null 2> conftest.err0]) - AC_TRY_COMMAND([$CXX -c $1 conftest.$ac_ext > /dev/null 2> conftest.err]) - AC_TRY_COMMAND([cat conftest.err >&5]) -- AC_TRY_COMMAND([$ac_cv_prog_egrep \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null]) -+ AC_TRY_COMMAND([$EGREP \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null]) - # the command above seems to not always return the correct status, so - # for safety I rerun it here; I keep the other one for logging purpose. -- pov_prog_cxx_flags_err=`$ac_cv_prog_egrep "$pov_prog_cxx_flags_regexp" conftest.err` -+ pov_prog_cxx_flags_err=`$EGREP "$pov_prog_cxx_flags_regexp" conftest.err` - AC_TRY_COMMAND([diff conftest.err0 conftest.err >&5]) - if test -z "$pov_prog_cxx_flags_err" \ - || test -z "`diff conftest.err0 conftest.err`"; then -@@ -204,8 +204,8 @@ - AC_TRY_COMMAND([$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0]) - AC_TRY_COMMAND([$CC -c $1 conftest.$ac_ext > /dev/null 2> conftest.err]) - AC_TRY_COMMAND([cat conftest.err >&5]) -- AC_TRY_COMMAND([$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null]) -- pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err` -+ AC_TRY_COMMAND([$EGREP \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null]) -+ pov_prog_cc_flags_err=`$EGREP "$pov_prog_cc_flags_regexp" conftest.err` - AC_TRY_COMMAND([diff conftest.err0 conftest.err >&5]) - if test -z "$pov_prog_cc_flags_err" \ - || test -z "`diff conftest.err0 conftest.err`"; then diff --git a/media-gfx/povray/files/povray-3.6.1-libpng14.patch b/media-gfx/povray/files/povray-3.6.1-libpng14.patch deleted file mode 100644 index 250927f183eb..000000000000 --- a/media-gfx/povray/files/povray-3.6.1-libpng14.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- source/png_pov.cpp -+++ source/png_pov.cpp -@@ -1428,7 +1428,7 @@ - if(r_info_ptr->valid & PNG_INFO_tRNS) - { - for (index = 0; index < r_info_ptr->num_trans; index++) -- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; -+ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; - } - - Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image"); -@@ -1461,7 +1461,7 @@ - if(r_info_ptr->valid & PNG_INFO_tRNS) - { - for (index = 0; index < r_info_ptr->num_trans; index++) -- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; -+ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; - } - - Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image"); diff --git a/media-gfx/povray/files/povray-3.6.1-use-system-libpng.patch b/media-gfx/povray/files/povray-3.6.1-use-system-libpng.patch deleted file mode 100644 index 365ee370f0d0..000000000000 --- a/media-gfx/povray/files/povray-3.6.1-use-system-libpng.patch +++ /dev/null @@ -1,51 +0,0 @@ ---- povray-3.6.1/acinclude.m4~ 2004-08-03 00:16:14.000000000 +0100 -+++ povray-3.6.1/acinclude.m4 2006-11-15 15:29:33.000000000 +0000 -@@ -353,13 +353,36 @@ - [ - AC_LANG_SOURCE( - [#include <stdio.h> -+#include <stdlib.h> - #include <string.h> - #include "$5" - int main (void) - { - const char *version = $6; -+ char wanted[[]] = "$2"; -+ char *version_tok, *wanted_tok = wanted; -+ char *version_tmp, *wanted_tmp; - fprintf (stderr, "%s\n", version); -- return ! (strcmp (version ? version : "", "$2") >= 0); -+ if (!version) return EXIT_FAILURE; -+ version_tok = strdup(version); -+ for (version_tok = strtok_r(version_tok, ".", &version_tmp), -+ wanted_tok = strtok_r(wanted_tok, ".", &wanted_tmp); -+ version_tok != NULL && wanted_tok != NULL; -+ version_tok = strtok_r(NULL, ".", &version_tmp), -+ wanted_tok = strtok_r(NULL, ".", &wanted_tmp)) { -+ char *version_endptr, *wanted_endptr; -+ unsigned long version_bit = strtoul(version_tok, &version_endptr, 10); -+ unsigned long wanted_bit = strtoul(wanted_tok, &wanted_endptr, 10); -+ if (version_bit < wanted_bit) -+ return EXIT_FAILURE; -+ if (version_bit > wanted_bit) -+ return EXIT_SUCCESS; -+ if (strcmp(version_endptr, wanted_endptr) > 0) -+ return EXIT_SUCCESS; -+ if (strcmp(version_endptr, wanted_endptr) < 0) -+ return EXIT_FAILURE; -+ } -+ return wanted_tok == NULL ? EXIT_SUCCESS : EXIT_FAILURE; - }] - ) - ], ---- povray-3.6.1/source/png_pov.cpp~ 2004-08-03 00:11:37.000000000 +0100 -+++ povray-3.6.1/source/png_pov.cpp 2006-11-15 16:48:33.000000000 +0000 -@@ -782,7 +782,7 @@ - { - // finished prematurely - trick into thinking done - png_ptr->num_rows = png_ptr->row_number; -- png_write_finish_row(png_ptr); -+ png_write_row(png_ptr, row_ptr); - } - - #ifdef POV_COMMENTS // temporarily skip comment writing code diff --git a/media-gfx/povray/files/povray-3.7.0_beta38-print-extend-expiration-info.patch b/media-gfx/povray/files/povray-3.7.0_beta38-print-extend-expiration-info.patch deleted file mode 100644 index 022e7a50602c..000000000000 --- a/media-gfx/povray/files/povray-3.7.0_beta38-print-extend-expiration-info.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/vfe/unix/unixconsole.cpp b/vfe/unix/unixconsole.cpp -index e2dffb0..94da68f 100644 ---- a/vfe/unix/unixconsole.cpp -+++ b/vfe/unix/unixconsole.cpp -@@ -259,6 +259,7 @@ void PrintBeta(int argc, char **argv) - if (current_time > HARD_EXPIRY) - { - fprintf(stderr, "%s: this pre-release version of POV-Ray for Unix expired on 1 January 2011\n", PACKAGE); -+ fprintf(stderr, "\nTo extend the license period, you can do something like the following\n(adjust syntax for your shell):\n\n export POVRAY_BETA=`povray --betacode 2>&1`\n\n"); - exit(RETURN_ERROR); - } - fprintf(stderr, "%s: this pre-release version of POV-Ray for Unix expires on 1 January 2011\n", PACKAGE); diff --git a/media-gfx/povray/povray-3.6.1-r4.ebuild b/media-gfx/povray/povray-3.6.1-r4.ebuild deleted file mode 100644 index 2eb12f0f2847..000000000000 --- a/media-gfx/povray/povray-3.6.1-r4.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild,v 1.16 2011/09/28 19:33:31 lavajoe Exp $ - -inherit flag-o-matic eutils autotools - -DESCRIPTION="The Persistence Of Vision Ray Tracer" -SRC_URI="ftp://ftp.povray.org/pub/povray/Official/Unix/${P}.tar.bz2" -HOMEPAGE="http://www.povray.org/" - -LICENSE="povlegal-3.6" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="svga tiff X" - -DEPEND=">=media-libs/libpng-1.4 - tiff? ( >=media-libs/tiff-3.6.1 ) - virtual/jpeg - sys-libs/zlib - X? ( x11-libs/libXaw ) - svga? ( media-libs/svgalib )" -RDEPEND="${DEPEND}" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-libpng14.patch - epatch "${FILESDIR}"/${P}-configure.patch - epatch "${FILESDIR}"/${P}-find-egrep.patch - - # Change some destination directories that cannot be adjusted via configure - cp Makefile.am Makefile.am.orig - sed -i -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" Makefile.am - sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am - sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am - - cd unix - cp Makefile.am Makefile.am.orig - sed -i -e 's:^ -DPOVLIBDIR=.*: -DPOVLIBDIR=\\"@datadir@/'"${PN}"'\\" \\:' Makefile.am - sed -i -e 's:^ -DPOVCONFDIR=.*: -DPOVCONFDIR=\\"@sysconfdir@/'"${PN}"'\\" \\:' Makefile.am - cd .. - - # Patch code that compares system lib versions to properly detect - # newer versions. Also fix reference to old png call. (Bug #153538) - epatch "${FILESDIR}"/${P}-use-system-libpng.patch - - # Also, to make sure no bundled static libs can be used, remove them - rm -r libraries/jpeg - rm -r libraries/png - rm -r libraries/tiff - rm -r libraries/zlib - - AT_NO_RECURSIVE="yes" eautoreconf -} - -src_compile() { - # Fixes bug 71255 - if [[ $(get-flag march) == k6-2 ]]; then - filter-flags -fomit-frame-pointer - fi - - econf \ - COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \ - $(use_with svga) \ - $(use_with tiff) \ - $(use_with X) - - emake || die -} - -src_install() { - emake DESTDIR="${D}" install || die -} - -pkg_preinst() { - # Copy the old config files if they are in the old location - # but do not yet exist in the new location. - # This way, they can be treated by CONFIG_PROTECT as normal. - for conf_file in $(ls "${D}/etc/${PN}"); do - if [ ! -e "${ROOT}etc/${PN}/${conf_file}" ]; then - for version_dir in $(ls "${ROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do - if [ -e "${ROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then - mv "${ROOT}etc/${PN}/${version_dir}/${conf_file}" "${ROOT}etc/${PN}" - elog "Note: ${conf_file} moved from ${ROOT}etc/povray/${version_dir}/ to ${ROOT}etc/povray/" - break - fi - done - fi - done -} diff --git a/media-gfx/povray/povray-3.6.1-r6.ebuild b/media-gfx/povray/povray-3.6.1-r6.ebuild deleted file mode 100644 index 26767835d410..000000000000 --- a/media-gfx/povray/povray-3.6.1-r6.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r6.ebuild,v 1.1 2011/10/01 00:44:01 lavajoe Exp $ - -inherit flag-o-matic eutils autotools - -DESCRIPTION="The Persistence Of Vision Ray Tracer" -SRC_URI="ftp://ftp.povray.org/pub/povray/Official/Unix/${P}.tar.bz2" -HOMEPAGE="http://www.povray.org/" - -LICENSE="povlegal-3.6" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="svga tiff X" - -DEPEND=">=media-libs/libpng-1.4 - tiff? ( >=media-libs/tiff-3.6.1 ) - virtual/jpeg - sys-libs/zlib - X? ( x11-libs/libXaw ) - svga? ( media-libs/svgalib )" -RDEPEND="${DEPEND}" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-libpng14.patch - epatch "${FILESDIR}"/${P}-configure.patch - epatch "${FILESDIR}"/${P}-find-egrep.patch - - # Change some destination directories that cannot be adjusted via configure - cp Makefile.am Makefile.am.orig - sed -i -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" Makefile.am - sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am - sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am - - cd unix - cp Makefile.am Makefile.am.orig - sed -i -e 's:^ -DPOVLIBDIR=.*: -DPOVLIBDIR=\\"@datadir@/'"${PN}"'\\" \\:' Makefile.am - sed -i -e 's:^ -DPOVCONFDIR=.*: -DPOVCONFDIR=\\"@sysconfdir@/'"${PN}"'\\" \\:' Makefile.am - cd .. - - # Patch code that compares system lib versions to properly detect - # newer versions. Also fix reference to old png call. (Bug #153538) - epatch "${FILESDIR}"/${P}-use-system-libpng.patch - - # Also, to make sure no bundled static libs can be used, remove them - rm -r libraries/jpeg - rm -r libraries/png - rm -r libraries/tiff - rm -r libraries/zlib - - AT_NO_RECURSIVE="yes" eautoreconf -} - -src_compile() { - # Fixes bug 71255 - if [[ $(get-flag march) == k6-2 ]]; then - filter-flags -fomit-frame-pointer - fi - - econf \ - COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \ - $(use_with svga) \ - $(use_with tiff) \ - $(use_with X) \ - --disable-optimiz - - emake || die -} - -src_install() { - emake DESTDIR="${D}" install || die -} - -pkg_preinst() { - # Copy the old config files if they are in the old location - # but do not yet exist in the new location. - # This way, they can be treated by CONFIG_PROTECT as normal. - for conf_file in $(ls "${D}/etc/${PN}"); do - if [ ! -e "${ROOT}etc/${PN}/${conf_file}" ]; then - for version_dir in $(ls "${ROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do - if [ -e "${ROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then - mv "${ROOT}etc/${PN}/${version_dir}/${conf_file}" "${ROOT}etc/${PN}" - elog "Note: ${conf_file} moved from ${ROOT}etc/povray/${version_dir}/ to ${ROOT}etc/povray/" - break - fi - done - fi - done -} diff --git a/media-gfx/povray/povray-3.7.0_beta40.ebuild b/media-gfx/povray/povray-3.7.0_beta40.ebuild deleted file mode 100644 index 2c77ec07e266..000000000000 --- a/media-gfx/povray/povray-3.7.0_beta40.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.7.0_beta40.ebuild,v 1.2 2011/02/26 18:23:12 signals Exp $ - -EAPI="3" - -inherit autotools eutils flag-o-matic versionator - -POVRAY_MAJOR_VER=$(get_version_component_range 1-3) -POVRAY_MINOR_VER=$(get_version_component_range 4) -if [ -n "$POVRAY_MINOR_VER" ]; then - POVRAY_MINOR_VER=${POVRAY_MINOR_VER/beta/beta.} - MY_PV="${POVRAY_MAJOR_VER}.${POVRAY_MINOR_VER}" -else - MY_PV=${POVRAY_MAJOR_VER} -fi - -DESCRIPTION="The Persistence of Vision Raytracer" -HOMEPAGE="http://www.povray.org/" -SRC_URI="http://www.povray.org/redirect/www.povray.org/beta/source/${PN}-${MY_PV}.tar.bz2" - -LICENSE="povlegal-3.6" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="debug mkl openexr tiff X" - -DEPEND=" - >=dev-libs/boost-1.41 - virtual/jpeg - media-libs/libpng - sys-libs/zlib - openexr? ( - media-libs/ilmbase - media-libs/openexr ) - mkl? ( sci-libs/mkl ) - tiff? ( >=media-libs/tiff-3.6.1 ) - X? ( media-libs/libsdl )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${PN}-${MY_PV}" - -src_prepare() { - # Print info on how to extend the expiration date of the beta - # if it has expired. - epatch "${FILESDIR}"/${PN}-3.7.0_beta38-print-extend-expiration-info.patch - - # Change some destination directories that cannot be adjusted via configure - cp configure.ac configure.ac.orig - sed \ - -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \ - -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \ - -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \ - -i configure.ac || die - - cp Makefile.am Makefile.am.orig - sed \ - -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" \ - -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" \ - -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" \ - -i Makefile.am || die - - # The "+p" option on the test command line causes a pause and - # prompts the user to interact, so remove it. - sed -i -e "s:biscuit.pov -f +d +p:biscuit.pov -f +d:" Makefile.am || die - - eautoreconf -} - -src_configure() { - local non_redist_conf - - # Fixes bug 71255 - if [[ $(get-flag march) == k6-2 ]]; then - filter-flags -fomit-frame-pointer - fi - - # The config files are installed correctly (e.g. povray.conf), - # but the code compiles using incorrect [default] paths - # (based on /usr/local...), so povray will not find the system - # config files without the following fix: - append-flags -DPOVLIBDIR=\\\"${EROOT}usr/share/${PN}\\\" - append-flags -DPOVCONFDIR=\\\"${EROOT}etc/${PN}\\\" - - if ! use tiff ; then - non_redist_conf="NON_REDISTRIBUTABLE_BUILD=yes" - else - non_redist_conf="" - fi - - econf \ - ${non_redist_conf} \ - COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \ - $(use_enable debug) \ - $(use_with openexr) \ - $(use_with mkl libmkl) \ - $(use_with tiff libtiff) \ - $(use_with X libsdl) \ - $(use_with X x) \ - --disable-strip \ - --disable-optimiz \ - --disable-optimiz-arch \ - --with-boost-libdir="${EPREFIX}/usr/$(get_libdir)" -} - -src_test() { - # For the beta releases, we generate a license extension in case needed - POVRAY_BETA=`./unix/povray --betacode 2>&1` emake check || die "Test failed" -} - -src_install() { - emake DESTDIR="${D}" install || die -} - -pkg_preinst() { - # Copy the old config files if they are in the old location - # but do not yet exist in the new location. - # This way, they can be treated by CONFIG_PROTECT as normal. - for conf_file in $(ls "${ED}/etc/${PN}"); do - if [ ! -e "${EROOT}etc/${PN}/${conf_file}" ]; then - for version_dir in $(ls "${EROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do - if [ -e "${EROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then - mv "${EROOT}etc/${PN}/${version_dir}/${conf_file}" "${EROOT}etc/${PN}" - elog "Note: ${conf_file} moved from ${EROOT}etc/povray/${version_dir}/ to ${EROOT}etc/povray/" - break - fi - done - fi - done -} - -pkg_postinst() { - ewarn "POV-Ray betas have expiration dates, but these can be extended for up to" - ewarn "a year. If expired, you will get the following error when running povray:" - ewarn - ewarn " povray: this pre-release version of POV-Ray for Unix has expired" - ewarn - ewarn "To extend the license period (a week at a time), you can do" - ewarn "something like the following (adjust syntax for your shell):" - ewarn - ewarn " export POVRAY_BETA=\`povray --betacode 2>&1\`" - ewarn - ewarn "You will need to repeat this each time it expires." -} |