media-libs/libsfml: version bump to 2.3.1
authorTim Harder <radhermit@gentoo.org>
Sat, 29 Aug 2015 17:59:08 +0000 (13:59 -0400)
committerTim Harder <radhermit@gentoo.org>
Sat, 29 Aug 2015 18:01:23 +0000 (14:01 -0400)
media-libs/libsfml/Manifest
media-libs/libsfml/libsfml-2.3.1.ebuild [new file with mode: 0644]

index 1fdea152c9e7310121778d26deb3d04fcf2c73fb..923383f0a0607391c4a621870eb36c243fba4f37 100644 (file)
@@ -1,2 +1,3 @@
 DIST SFML-1.6-sdk-linux-32.tar.gz 12937755 SHA256 b1c18f9b99c54ebb4cd433792f33ed2b85c846cca28eb871a12b3191dc1532f8 SHA512 518121bf05ab8b1f4ad917eaca72951ff870e992f79e2b3da94baad762e7de63ce331cf4cade172e285015fb6fec501e25039c633be2f7b77d77b171dc29cb0a WHIRLPOOL fee6692123c394b4d67d1937756315daf7386bf8d0292bbeb94ba7db53552010e8f92187496ce9b72f6aad4922e5ea5da191ddaf9baf0f96a7b741a1d1d17f2e
 DIST libsfml-2.2.tar.gz 17614806 SHA256 543458923e35868c16ac70e5f4c3bf172e136af9820d7b546b52afc7f1fc77f5 SHA512 cf30d431afc19d0f0126f2879dcb4c81ff4f689ce1e7aab5c3f156e8a88cdd54574e60de6230a9a5f7793a6c41ac81d811c68a9f1971ce079dada8d281ca34a3 WHIRLPOOL 8ba9c968840839295707e92281ecbc5d88b8900bab85dac0e1a4d66a0b8521bca0d5c6b0d1d330a1191aedf073f9633c7ce8f6dcbef9f84e3fac8c61d9c7c96e
+DIST libsfml-2.3.1.tar.gz 22209471 SHA256 59d7fd6b6c1194393ccac4cb7da3c41adbad973ab2116421ad6fcfe823221d6f SHA512 8a4d61be38cfae7b00f0c9669aed8d3e2cafd0e69aa840a155f3d6adfd9cf0cd37e6f69e4d52828f96f32b03a3c9bddb0f06366ab5e171775a036823164dcbe6 WHIRLPOOL 95c7c534915afb63e38d37ec712433267673aa22597ee3052df5f62becb6723d364440aa1e922e4012e043302c2ad70eb52fedaa4bfa6ee8a4ad3f4b0649141b
diff --git a/media-libs/libsfml/libsfml-2.3.1.ebuild b/media-libs/libsfml/libsfml-2.3.1.ebuild
new file mode 100644 (file)
index 0000000..572bbad
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+MY_P=SFML-${PV}
+
+DESCRIPTION="Simple and Fast Multimedia Library (SFML)"
+HOMEPAGE="http://www.sfml-dev.org/ https://github.com/SFML/SFML"
+SRC_URI="https://github.com/SFML/SFML/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc examples"
+
+RDEPEND="media-libs/freetype:2
+       media-libs/libpng:0=
+       media-libs/mesa
+       media-libs/flac
+       media-libs/libogg
+       media-libs/libvorbis
+       media-libs/openal
+       sys-libs/zlib
+       virtual/jpeg:0
+       virtual/udev
+       x11-libs/libX11
+       x11-libs/libXrandr"
+DEPEND="${RDEPEND}
+       doc? ( app-doc/doxygen )"
+
+DOCS="changelog.txt readme.txt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.2-no-docs.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)
+               -DSFML_INSTALL_PKGCONFIG_FILES=TRUE
+       )
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       insinto /usr/share/cmake/Modules
+       doins cmake/Modules/FindSFML.cmake
+
+       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
+}