summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-11-27 10:08:59 +0000
committerTim Harder <radhermit@gentoo.org>2012-11-27 10:08:59 +0000
commitf52c388f6597a3577ce0a21e8a29eaca6effd7cd (patch)
treecd42b33674ccf28e24b0919192e9ff93807af1dd /media-libs/libsfml
parentMask =media-libs/libsfml-2* for testing. (diff)
downloadgentoo-2-f52c388f6597a3577ce0a21e8a29eaca6effd7cd.tar.gz
gentoo-2-f52c388f6597a3577ce0a21e8a29eaca6effd7cd.tar.bz2
gentoo-2-f52c388f6597a3577ce0a21e8a29eaca6effd7cd.zip
Version bump to snapshot (bug #442604 by pinkbyte).
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-libs/libsfml')
-rw-r--r--media-libs/libsfml/ChangeLog10
-rw-r--r--media-libs/libsfml/files/libsfml-2.0_pre20121126-no-docs.patch13
-rw-r--r--media-libs/libsfml/files/libsfml-2.0_pre20121126-shared-glew.patch11
-rw-r--r--media-libs/libsfml/libsfml-2.0_pre20121126.ebuild57
4 files changed, 90 insertions, 1 deletions
diff --git a/media-libs/libsfml/ChangeLog b/media-libs/libsfml/ChangeLog
index 670e9c81cdc8..442df2653d85 100644
--- a/media-libs/libsfml/ChangeLog
+++ b/media-libs/libsfml/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/libsfml
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsfml/ChangeLog,v 1.8 2012/06/07 20:18:23 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsfml/ChangeLog,v 1.9 2012/11/27 10:08:59 radhermit Exp $
+
+*libsfml-2.0_pre20121126 (27 Nov 2012)
+
+ 27 Nov 2012; Tim Harder <radhermit@gentoo.org>
+ +libsfml-2.0_pre20121126.ebuild,
+ +files/libsfml-2.0_pre20121126-no-docs.patch,
+ +files/libsfml-2.0_pre20121126-shared-glew.patch:
+ Version bump to snapshot (bug #442604 by pinkbyte).
07 Jun 2012; Tim Harder <radhermit@gentoo.org> libsfml-1.6-r1.ebuild,
+files/libsfml-1.6-gcc47.patch:
diff --git a/media-libs/libsfml/files/libsfml-2.0_pre20121126-no-docs.patch b/media-libs/libsfml/files/libsfml-2.0_pre20121126-no-docs.patch
new file mode 100644
index 000000000000..c37520c91dd3
--- /dev/null
+++ b/media-libs/libsfml/files/libsfml-2.0_pre20121126-no-docs.patch
@@ -0,0 +1,13 @@
+--- libsfml-2.0.0_pre20121126/CMakeLists.txt
++++ libsfml-2.0.0_pre20121126/CMakeLists.txt
+@@ -211,10 +211,6 @@
+ COMPONENT devel)
+ endif()
+
+-install(FILES cmake/Modules/FindSFML.cmake DESTINATION ${INSTALL_MISC_DIR}/cmake/Modules)
+-install(FILES license.txt DESTINATION ${INSTALL_MISC_DIR})
+-install(FILES readme.txt DESTINATION ${INSTALL_MISC_DIR})
+-
+ if(WINDOWS)
+ if(ARCH_32BITS)
+ install(FILES extlibs/bin/x86/libsndfile-1.dll DESTINATION bin)
diff --git a/media-libs/libsfml/files/libsfml-2.0_pre20121126-shared-glew.patch b/media-libs/libsfml/files/libsfml-2.0_pre20121126-shared-glew.patch
new file mode 100644
index 000000000000..9f4baf8c2ce4
--- /dev/null
+++ b/media-libs/libsfml/files/libsfml-2.0_pre20121126-shared-glew.patch
@@ -0,0 +1,11 @@
+--- libsfml-2.0.0_pre20121126/src/SFML/Graphics/CMakeLists.txt
++++ libsfml-2.0.0_pre20121126/src/SFML/Graphics/CMakeLists.txt
+@@ -102,7 +102,7 @@
+ endif()
+
+ # add preprocessor symbols
+-add_definitions(-DGLEW_STATIC -DSTBI_FAILURE_USERMSG)
++add_definitions(-DSTBI_FAILURE_USERMSG)
+
+ # ImageLoader.cpp must be compiled with the -fno-strict-aliasing
+ # when gcc is used; otherwise saving PNGs may crash in stb_image_write
diff --git a/media-libs/libsfml/libsfml-2.0_pre20121126.ebuild b/media-libs/libsfml/libsfml-2.0_pre20121126.ebuild
new file mode 100644
index 000000000000..bce90718de40
--- /dev/null
+++ b/media-libs/libsfml/libsfml-2.0_pre20121126.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsfml/libsfml-2.0_pre20121126.ebuild,v 1.1 2012/11/27 10:08:59 radhermit Exp $
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="Simple and Fast Multimedia Library (SFML)"
+HOMEPAGE="http://sfml.sourceforge.net/ https://github.com/LaurentGomila/SFML"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.tar.xz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc examples"
+
+RDEPEND="media-libs/freetype:2
+ media-libs/glew
+ media-libs/libpng
+ media-libs/libsndfile
+ media-libs/mesa
+ media-libs/openal
+ sys-libs/zlib
+ virtual/jpeg
+ x11-libs/libX11
+ x11-libs/libXrandr"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ doc? ( app-doc/doxygen )"
+
+DOCS="readme.txt"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-docs.patch
+ epatch "${FILESDIR}"/${P}-shared-glew.patch
+
+ sed -i "s:DESTINATION .*:DESTINATION /usr/share/doc/${PF}:" \
+ doc/CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use doc SFML_BUILD_DOC)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use examples ; then
+ docompress -x /usr/share/doc/${PF}/examples
+ dodoc -r examples
+ find "${ED}"/usr/share/doc/${PF}/examples -name CMakeLists.txt -delete
+ fi
+}