From: Luca Barbato Date: Mon, 9 Apr 2007 20:57:32 +0000 (+0000) Subject: New masked ebuild X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46820576b84e09eb012dbefe5a1cfea6378a5aa4;p=gentoo.git New masked ebuild Package-Manager: portage-2.1.2.3 --- diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest index ef8500df40c8..e0b9974afc56 100644 --- a/media-gfx/blender/Manifest +++ b/media-gfx/blender/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX blender-2.37-dirs.patch 725 RMD160 3496386616f3066e1a237921f8ecc695a21b142e SHA1 905181caae8193d212a783e4c4c938e87e136752 SHA256 18ed351fd88c1bf952c86425dc769143cda6c5cd25e948ec1e1c0a1b911d44f7 MD5 bcc3b86202d4c6bb85ef9cef08bfcf9e files/blender-2.37-dirs.patch 725 RMD160 3496386616f3066e1a237921f8ecc695a21b142e files/blender-2.37-dirs.patch 725 @@ -16,7 +13,9 @@ SHA256 bef633319c81323bb82db274004d89082ca05cab6650eb4c4bf43f830ccb5cad files/bl DIST blender-2.41.tar.gz 9464385 RMD160 7857eac2acda18ee24db4bb147bcf780025e2c12 SHA1 839dfece3b6efbf10694ac535d88e3745c3253ec SHA256 743a78648773619d3153a16c0a5b67f960b2fec026bcb75d0175e52e8e8aadd1 DIST blender-2.42.tar.gz 12195054 RMD160 c3a1aa1080d122867f116dd05564c77d41d55194 SHA1 a8fa45b0f032d992b20762bada931da18b716368 SHA256 c0f5f0c3d9cfbf661bba153ebbcafed21bc34524c02096050626194c9345af93 DIST blender-2.42a.tar.gz 12295244 RMD160 3178191ec9565c92f0b381fef2ad69c88873aadb SHA1 242dd751a0cc851c7436eafa73475a11be1aa453 SHA256 f046a66abe2e9a93a17ef1538f43642d2b6a6e48b55b804899fea59279dacd52 +DIST blender-2.43.tar.gz 13806334 RMD160 a43babbc816194ba3e4cfed3bd250d20406e2479 SHA1 de9ba15fb40d962e56deebdea13a3a68b3ae6532 SHA256 a48213b61302d03eb8db0cf42712b142d280d16ad111f6411cd8e43403e5e61b DIST ffmpeg-0.4.9-p20061016.tar.bz2 2009859 RMD160 b41eeb50ef91e5f7a44f725d29d3b9f8104dd62c SHA1 2e15183755378b4089264be3f8865e24eeaa39dc SHA256 99d18860b5db8f3218481c3c977ad63dcff285f193740f31ae5c8e3cac79d531 +DIST ffmpeg-0.4.9-p20070330.tar.bz2 2192476 RMD160 e52bf6abbf7c630aa3e76243987fb7dd6d9b84a1 SHA1 bcc18c88c64f6f941eb1ac94357e0d6dcbf99045 SHA256 58a7e7d909e02fda07856ea044ae0f5f9c174791f63a449f2f23f37a78b34f95 EBUILD blender-2.41-r1.ebuild 3532 RMD160 da26525f78dab173c52f86ea717e3d5f449604dc SHA1 8a50b2b95d37bcae31f20812ccb15996edd253ee SHA256 c52ffe9fc91d5605dc4eefb6ebc4d8caaf7c45544b69d6978bc05af96619c929 MD5 9c841fae9ffb782ad2ca2430236c6e6e blender-2.41-r1.ebuild 3532 RMD160 da26525f78dab173c52f86ea717e3d5f449604dc blender-2.41-r1.ebuild 3532 @@ -29,6 +28,10 @@ EBUILD blender-2.42a-r1.ebuild 3452 RMD160 b148d04e947f1b633a21ff6a7200d28a8221a MD5 3844de1d8c8cecad1cc9552276d52b7c blender-2.42a-r1.ebuild 3452 RMD160 b148d04e947f1b633a21ff6a7200d28a8221a157 blender-2.42a-r1.ebuild 3452 SHA256 a4eb702d064e3f42fda8081560f5e67ede5b8dc9cd55d07e100f9b66dd7fd2a6 blender-2.42a-r1.ebuild 3452 +EBUILD blender-2.43.ebuild 3619 RMD160 01360f4123103794b39fe4d5b8b090f8f6bf7fd7 SHA1 cb1c7ac1038b76cf30accd47c043fdefb546da7c SHA256 d270927148ab9ea614b205f6b7fa12ea73f86a86ae2adee16d5a5ba834a4c902 +MD5 69e0cf9d3a68ee549c5efb419e8d308c blender-2.43.ebuild 3619 +RMD160 01360f4123103794b39fe4d5b8b090f8f6bf7fd7 blender-2.43.ebuild 3619 +SHA256 d270927148ab9ea614b205f6b7fa12ea73f86a86ae2adee16d5a5ba834a4c902 blender-2.43.ebuild 3619 MISC ChangeLog 15344 RMD160 0ff9257ab9d35b3f3cdebac714dc197dd08c57ae SHA1 afb5ce017bd977d94f612dac8d79b97721464572 SHA256 0cf3218f6071c2288c59ef7f24e3d9608263c6213bd36802d3f761e3a8c169f1 MD5 d597c05fa8a615ae4ddbd602a1482b62 ChangeLog 15344 RMD160 0ff9257ab9d35b3f3cdebac714dc197dd08c57ae ChangeLog 15344 @@ -46,10 +49,6 @@ SHA256 81385a4f674d43c047eeadd3b65956475dffab2e10c1f820db2076c32a712374 files/di MD5 ca68c22db3c4fd246ce043b3de0112ee files/digest-blender-2.42a-r1 521 RMD160 b6cfe1ec330ec0e62551df0afa84435ac4b70abf files/digest-blender-2.42a-r1 521 SHA256 46499abfc93e30703937df62bbef32ae82b32b403e97858e875c00e1c2a06961 files/digest-blender-2.42a-r1 521 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.3 (GNU/Linux) - -iD8DBQFGBtNWvFcC4BYPU0oRAtMzAJwMHL5QsAZ1uSK6R/6U///5xpZ59ACgg1wD -Cc7GNApB60gAOgQS+9+rNJY= -=IH97 ------END PGP SIGNATURE----- +MD5 62194ea163aabbf04e7e0416cb7b9bba files/digest-blender-2.43 518 +RMD160 f5dfd89119d035707f277f3e58482b2551cd8ce9 files/digest-blender-2.43 518 +SHA256 95b235ed7ffbc0b3009ebb9e62e2a6cbaa15f5d68203b0e2191109977ba0af07 files/digest-blender-2.43 518 diff --git a/media-gfx/blender/blender-2.43.ebuild b/media-gfx/blender/blender-2.43.ebuild new file mode 100644 index 000000000000..569e0d9dc655 --- /dev/null +++ b/media-gfx/blender/blender-2.43.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.43.ebuild,v 1.1 2007/04/09 20:57:32 lu_zero Exp $ + +inherit multilib flag-o-matic eutils python + +#IUSE="jpeg mozilla png sdl static truetype" +IUSE="blender-game ffmpeg jpeg nls openal openexr png sdl" +FFMPEG_SNAP="0.4.9-p20070330" +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org/" +SRC_URI="http://download.blender.org/source/${P}.tar.gz + ffmpeg? ( mirror://gentoo/ffmpeg-${FFMPEG_SNAP}.tar.bz2 )" + +SLOT="0" +LICENSE="|| ( GPL-2 BL )" +KEYWORDS="~x86 ~ppc ~amd64" + +RDEPEND=">=dev-libs/openssl-0.9.6 + ffmpeg? ( >=media-video/ffmpeg-${FFMPEG_SNAP/-/_} + >=media-libs/x264-svn-20061014 ) + jpeg? ( media-libs/jpeg ) + media-libs/tiff + nls? ( >=media-libs/freetype-2.0 + virtual/libintl + >=media-libs/ftgl-2.1 ) + openal? ( media-libs/openal + media-libs/freealut ) + openexr? ( media-libs/openexr ) + png? ( media-libs/libpng ) + sdl? ( >=media-libs/libsdl-1.2 ) + virtual/opengl" + +DEPEND="dev-util/scons + || ( x11-libs/libXt virtual/x11 ) + ${RDEPEND}" + +blend_with() { + local UWORD="$2" + if [ -z "${UWORD}" ]; then + UWORD="$1" + fi + if useq $1; then + echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ + >> ${S}/user-config.py + else + echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ + >> ${S}/user-config.py + fi + return 0 +} + +src_unpack() { + unpack ${A} + cd ${S}/release/plugins + chmod 755 bmake + rmdir include + cp -pPR ${S}/source/blender/blenpluginapi include + + cd ${S} + epatch ${FILESDIR}/blender-2.37-dirs.patch + + if use ffmpeg ; then + cd ${S}/extern + mv ffmpeg/Makefile ffmpeg/common.mak ${T} + unpack ffmpeg-${FFMPEG_SNAP}.tar.bz2 + mv ${T}/Makefile ${T}/common.mak ffmpeg + fi + # pass compiler flags to the scons build system + echo "CFLAGS += '${CFLAGS}'" >> ${S}/user-config.py + echo "CCFLAGS += ['${CXXFLAGS//' '/','}','-DYESIAMSTUPID']" \ + >> ${S}/user-config.py + # disable blender-player and iconv + # echo "WITH_BF_PLAYER=0" >> ${S}/user-config.py + # echo "WITH_BF_ICONV=0" >> ${S}/user-config.py +} + + +src_compile() { + myconf="${myconf} $(blend_with openal)" + myconf="${myconf} $(blend_with openexr)" + myconf="${myconf} $(blend_with jpeg)" + myconf="${myconf} $(blend_with ffmpeg)" + myconf="${myconf} $(blend_with png)" + myconf="${myconf} $(blend_with nls international)" + myconf="${myconf} $(blend_with blender-game gameengine)" + + # scons uses -l differently -> remove it + scons ${MAKEOPTS/-l[0-9]} -h > scons.config + scons ${MAKEOPTS/-l[0-9]} || die \ + "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org" + + cd ${S}/release/plugins + emake || die +} + +src_install() { + exeinto /usr/bin/ + doexe ${WORKDIR}/install/linux2/blender + + dodir /usr/share/${PN} + + exeinto /usr/$(get_libdir)/${PN}/textures + doexe ${S}/release/plugins/texture/*.so + exeinto /usr/$(get_libdir)/${PN}/sequences + doexe ${S}/release/plugins/sequence/*.so + insinto /usr/include/${PN} + doins ${S}/release/plugins/include/*.h + + if use nls ; then + mv ${WORKDIR}/install/linux2/.blender/{.Blanguages,.bfont.ttf} \ + ${D}/usr/share/${PN} + mv ${WORKDIR}/install/linux2/.blender/locale \ + ${D}/usr/share/locale + fi + + mv ${WORKDIR}/install/linux2/.blender/scripts ${D}/usr/share/${PN} + + insinto /usr/share/pixmaps + doins ${FILESDIR}/${PN}.png + insinto /usr/share/applications + doins ${FILESDIR}/${PN}.desktop + + dodoc COPYING INSTALL README +} + +pkg_preinst(){ + if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; + then + rm -f ${ROOT}/usr/$(get_libdir)/blender/plugins/include + fi +} diff --git a/media-gfx/blender/files/digest-blender-2.43 b/media-gfx/blender/files/digest-blender-2.43 new file mode 100644 index 000000000000..d6716c4c5bae --- /dev/null +++ b/media-gfx/blender/files/digest-blender-2.43 @@ -0,0 +1,6 @@ +MD5 7629c31bc45e286bdf3b2c555e6446a2 blender-2.43.tar.gz 13806334 +RMD160 a43babbc816194ba3e4cfed3bd250d20406e2479 blender-2.43.tar.gz 13806334 +SHA256 a48213b61302d03eb8db0cf42712b142d280d16ad111f6411cd8e43403e5e61b blender-2.43.tar.gz 13806334 +MD5 eb4210984880af7f2c0043c4e3f1658e ffmpeg-0.4.9-p20070330.tar.bz2 2192476 +RMD160 e52bf6abbf7c630aa3e76243987fb7dd6d9b84a1 ffmpeg-0.4.9-p20070330.tar.bz2 2192476 +SHA256 58a7e7d909e02fda07856ea044ae0f5f9c174791f63a449f2f23f37a78b34f95 ffmpeg-0.4.9-p20070330.tar.bz2 2192476