diff options
Diffstat (limited to 'dev-libs/libRocket')
-rw-r--r-- | dev-libs/libRocket/ChangeLog | 13 | ||||
-rw-r--r-- | dev-libs/libRocket/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/libRocket/files/libRocket-1.2.1-build.patch | 44 | ||||
-rw-r--r-- | dev-libs/libRocket/libRocket-1.2.1.ebuild | 81 | ||||
-rw-r--r-- | dev-libs/libRocket/libRocket-1.2.1_p20130110.ebuild | 76 | ||||
-rw-r--r-- | dev-libs/libRocket/libRocket-9999.ebuild | 77 | ||||
-rw-r--r-- | dev-libs/libRocket/metadata.xml | 12 |
7 files changed, 311 insertions, 0 deletions
diff --git a/dev-libs/libRocket/ChangeLog b/dev-libs/libRocket/ChangeLog new file mode 100644 index 000000000000..74b5bed09a54 --- /dev/null +++ b/dev-libs/libRocket/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-libs/libRocket +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libRocket/ChangeLog,v 1.1 2013/01/18 18:40:21 hasufell Exp $ + +*libRocket-9999 (18 Jan 2013) +*libRocket-1.2.1_p20130110 (18 Jan 2013) +*libRocket-1.2.1 (18 Jan 2013) + + 18 Jan 2013; Julian Ospald <hasufell@gentoo.org> +libRocket-1.2.1.ebuild, + +libRocket-1.2.1_p20130110.ebuild, +files/libRocket-1.2.1-build.patch, + +libRocket-9999.ebuild, +metadata.xml: + initial import + diff --git a/dev-libs/libRocket/Manifest b/dev-libs/libRocket/Manifest new file mode 100644 index 000000000000..d549c08f773f --- /dev/null +++ b/dev-libs/libRocket/Manifest @@ -0,0 +1,8 @@ +AUX libRocket-1.2.1-build.patch 1194 SHA256 9650d7a94fea3220c15dcdcd4002df95c025b3d40dc0c924dc4cbbb35d01094d SHA512 3eeafcd7dec286cdf5375394e66b99a8313c874258a373875b09b13d26fad778b2eda5e9fe7c89cb4c3ef96ce68c28ea541bd0f27ac0e0b5cd56052f228d24d8 WHIRLPOOL b61a731e56e0c9f92bb0e30337c8f97120ab99d454dd2dbc2f0b726f56d28a5401179292f38ffa19c7d0bb32cbece3ab99f61b1c67f7d62fd8c2a8cf5ae03aa6 +DIST libRocket-1.2.1.tar.gz 1796018 SHA256 05c92515031ebfa5b1e9421d88116a60f815818c97004947a16ce6b4c77563a7 SHA512 49210bf7f4867103d0149a789f020388a2ad533ee684b52d8d2ffdb38f41fe873ffc389b79a20a7020506b368394a0fde7a8ba5cb495576edc16f1b12f520e41 WHIRLPOOL f9b8f9d30c3f94028d623f22b8169a4a101fda5f52edd3a21d05b9a56c6410c94788e1226c4689361a7a8198973cf4c6819cd3733fe69d3d8a93edffad090e06 +DIST libRocket-1.2.1_p20130110.tar.xz 845572 SHA256 5661f0d1b0a3e19b9f2856b9927ed7ec4ad6939e732230832cd701bf078a732b SHA512 1c474e0cad2e13ebe6102cd5d31c3fa61370d23062c31fd7703ec431f0da56f008c9711b49b73d8a9b32af0313e2cb3aa8c46888a36044fef05c15fe1cbc23b5 WHIRLPOOL 52ef88ebc35ac762c6b50fbaed8713b2568f80bc65390e696537f4935eaf1c4182a64b414fd6bfadb3e1a6cadb0589fcb20bc12c26e3ea87edaf342b5ff09bb6 +EBUILD libRocket-1.2.1.ebuild 1857 SHA256 875e08de4934d90ec9e2c6a4736c2fdf617ce7e42edd29e75b62ddd8924f2c54 SHA512 57b684c18f9f6290895da89195422c1281237d53f668dcda12a42779dadec143a745f448f990df9d961615da655588d37ed342fdf0ba5f3ce703dd5b7bbc4c0f WHIRLPOOL 08d8effe6f5a0d501929dce7929f0b39119ef0795f3d93e643b4dd19a661763a4ab45b52f3c0a696d446c3ccf318db481e934fac470387e9f8276b385baba251 +EBUILD libRocket-1.2.1_p20130110.ebuild 1740 SHA256 b9c28fb1b7cad9093062d6d2bf793a0c96b607969825fbe7d410c4240f13c843 SHA512 d4891dfa0370d16c86e9097fb31fd7568b2b9336f1990acab8909114d1c1c282f54df81e2452a2bb4a34dec78b229c598f46ea2b337b54173dae8ddf4c39bf57 WHIRLPOOL 37d08e6c5ccb3f752ab9e80379bd759310175f85bddbee1766c282a2f1a6857fb4efde2be6de3239a9677f0ff23607152a69c2563a2fa908d18f6ceee6c67f0e +EBUILD libRocket-9999.ebuild 1731 SHA256 75096e541636f81b8f766d95348e8287549aa22aa76feb348c6c2ca67cae0bc0 SHA512 860dc7eec2c006caaa06a0cf896f392ac5091ccbe14d305e4e803b55e4efd302413a4f11fe85b9a9c5eedb61fef2f93cf764a3a83867f106e2d96a6c4c40630f WHIRLPOOL 039c54f285204555799b178703dee61cf3f3ba38d1e61541f132ab6bfa19533d92117576afc3962886db65fbe945307ba6fafd0b5be741c2cbd7394ac0342567 +MISC ChangeLog 430 SHA256 8777082b8321e27ab26a30739e0e9c1664a32e19035552b3ffa244711b9bde68 SHA512 44c1f377ec21ff8af276e67f09217f31087129b571d991af63b146317732ae6191f534fbfb45867ede32b4939257d8302b64d0e5026fbf7991d73c4c9c8e81d3 WHIRLPOOL 2b9074867fd9c823d11e48bfac09059983c4dd2152a5ff33a8cebc55c1126786a9b9aa6d72b47b3a0e97eec7b8c9635229f4ba51be83fbd453ffb91543ecc74a +MISC metadata.xml 294 SHA256 d42b1e02c3a48eab00022cc811e6998351b7c19691fad42b10bda6f3db8aaaab SHA512 0f5486821b3585889a6c955330f2c781356e370b245ec8656111448467a59c9fdc41fd15ae633737aa46ce48b86abdc3247bffd979da00e25c756758ebb77451 WHIRLPOOL 4d8bcc430d64d761d7e134d31627d0d43ff201b990dec3da289f0fa50d33702dfd1638d6c0da7a2601ce49a130266526284d341d4d2f50e289b36079249e4231 diff --git a/dev-libs/libRocket/files/libRocket-1.2.1-build.patch b/dev-libs/libRocket/files/libRocket-1.2.1-build.patch new file mode 100644 index 000000000000..e578b441f42b --- /dev/null +++ b/dev-libs/libRocket/files/libRocket-1.2.1-build.patch @@ -0,0 +1,44 @@ +From: Julian Ospald <hasufell@gentoo.org> +--- Build/CMakeLists.txt ++++ Build/CMakeLists.txt +@@ -11,6 +11,9 @@ + + project(libRocket C CXX) + ++# paths ++include(GNUInstallDirs) ++ + set(LIBROCKET_VERSION_MAJOR 1) + set(LIBROCKET_VERSION_MINOR 2) + set(LIBROCKET_VERSION_PATCH 1) +@@ -131,8 +134,8 @@ + endif() + + install(TARGETS ${NAME} +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + endforeach(library) + +@@ -237,7 +240,7 @@ + endif() + endif() + +- set(SAMPLES_DIR opt/Rocket/Samples) ++ set(SAMPLES_DIR opt/Rocket/Samples CACHE PATH "path to samples dir") + + # The samples use the shell library + include_directories(${PROJECT_SOURCE_DIR}/Samples/shell/include) +@@ -256,8 +259,8 @@ + target_link_libraries(${sample_LIBRARIES}) + + install(TARGETS shell +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + + list(APPEND samples treeview customlog drag loaddocument) diff --git a/dev-libs/libRocket/libRocket-1.2.1.ebuild b/dev-libs/libRocket/libRocket-1.2.1.ebuild new file mode 100644 index 000000000000..a13d7aa24677 --- /dev/null +++ b/dev-libs/libRocket/libRocket-1.2.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libRocket/libRocket-1.2.1.ebuild,v 1.1 2013/01/18 18:40:21 hasufell Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) +inherit cmake-utils eutils python-r1 + +DESCRIPTION="A HTML/CSS User Interface library" +HOMEPAGE="http://librocket.com/" +SRC_URI="https://github.com/lloydw/libRocket/archive/release-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python samples" + +RDEPEND="media-libs/freetype + python? ( + ${PYTHON_DEPS} + dev-libs/boost[${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN}-release-${PV} +python_BUILD_DIR=${WORKDIR}/${P}_build_python +CMAKE_USE_DIR="${S}"/Build + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch +} + +src_configure() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=OFF + $(cmake-utils_use_build samples SAMPLES) + -DSAMPLES_DIR=/usr/share/${PN}/samples + ) + + cmake-utils_src_configure + + if use python ; then + cfgpybind() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=ON + -DCMAKE_SKIP_RPATH=YES + ) + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_configure + } + einfo "configuring python binding" + python_foreach_impl cfgpybind + fi +} + +src_compile() { + cmake-utils_src_compile + + if use python ; then + buildpybind() { + cp "${WORKDIR}"/${P}_build/{libRocketCore*,libRocketControls*} "${python_BUILD_DIR}-${EPYTHON}"/ || die + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_make _rocketcontrols/fast _rocketcore/fast + } + einfo "compiling python binding" + python_foreach_impl buildpybind + fi +} + +src_install() { + cmake-utils_src_install + + if use python ; then + instpybind() { + python_domodule bin/rocket.py + exeinto "$(python_get_sitedir)" + doexe ${python_BUILD_DIR}-${EPYTHON}/_rocket{core,controls}.so + } + einfo "installing python binding" + python_foreach_impl instpybind + fi +} diff --git a/dev-libs/libRocket/libRocket-1.2.1_p20130110.ebuild b/dev-libs/libRocket/libRocket-1.2.1_p20130110.ebuild new file mode 100644 index 000000000000..4e47ef140da9 --- /dev/null +++ b/dev-libs/libRocket/libRocket-1.2.1_p20130110.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libRocket/libRocket-1.2.1_p20130110.ebuild,v 1.1 2013/01/18 18:40:21 hasufell Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) +inherit cmake-utils eutils python-r1 + +DESCRIPTION="A HTML/CSS User Interface library" +HOMEPAGE="http://librocket.com/" +SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python samples" + +RDEPEND="media-libs/freetype + python? ( + ${PYTHON_DEPS} + dev-libs/boost[${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND}" + +python_BUILD_DIR=${WORKDIR}/${P}_build_python +CMAKE_USE_DIR="${S}"/Build + +src_configure() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=OFF + $(cmake-utils_use_build samples SAMPLES) + -DSAMPLES_DIR=/usr/share/${PN}/samples + ) + + cmake-utils_src_configure + + if use python ; then + cfgpybind() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=ON + -DCMAKE_SKIP_RPATH=YES + ) + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_configure + } + einfo "configuring python binding" + python_foreach_impl cfgpybind + fi +} + +src_compile() { + cmake-utils_src_compile + + if use python ; then + buildpybind() { + cp "${WORKDIR}"/${P}_build/{libRocketCore*,libRocketControls*} "${python_BUILD_DIR}-${EPYTHON}"/ || die + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_make _rocketcontrols/fast _rocketcore/fast + } + einfo "compiling python binding" + python_foreach_impl buildpybind + fi +} + +src_install() { + cmake-utils_src_install + + if use python ; then + instpybind() { + python_domodule bin/rocket.py + exeinto "$(python_get_sitedir)" + doexe ${python_BUILD_DIR}-${EPYTHON}/_rocket{core,controls}.so + } + einfo "installing python binding" + python_foreach_impl instpybind + fi +} diff --git a/dev-libs/libRocket/libRocket-9999.ebuild b/dev-libs/libRocket/libRocket-9999.ebuild new file mode 100644 index 000000000000..1feda37a00d2 --- /dev/null +++ b/dev-libs/libRocket/libRocket-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libRocket/libRocket-9999.ebuild,v 1.1 2013/01/18 18:40:21 hasufell Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) +inherit cmake-utils git-2 python-r1 + +DESCRIPTION="A HTML/CSS User Interface library" +HOMEPAGE="http://librocket.com/" +SRC_URI="" +EGIT_REPO_URI="git://github.com/hasufell/libRocket.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="python samples" + +RDEPEND="media-libs/freetype + python? ( + ${PYTHON_DEPS} + dev-libs/boost[${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND}" + +python_BUILD_DIR=${WORKDIR}/${P}_build_python +CMAKE_USE_DIR="${S}"/Build + +src_configure() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=OFF + $(cmake-utils_use_build samples SAMPLES) + -DSAMPLES_DIR=/usr/share/${PN}/samples + ) + + cmake-utils_src_configure + + if use python ; then + cfgpybind() { + local mycmakeargs=( + -DBUILD_PYTHON_BINDINGS=ON + -DCMAKE_SKIP_RPATH=YES + ) + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_configure + } + einfo "configuring python binding" + python_foreach_impl cfgpybind + fi +} + +src_compile() { + cmake-utils_src_compile + + if use python ; then + buildpybind() { + cp "${WORKDIR}"/${P}_build/{libRocketCore*,libRocketControls*} "${python_BUILD_DIR}-${EPYTHON}"/ || die + BUILD_DIR="${python_BUILD_DIR}-${EPYTHON}" cmake-utils_src_make _rocketcontrols/fast _rocketcore/fast + } + einfo "compiling python binding" + python_foreach_impl buildpybind + fi +} + +src_install() { + cmake-utils_src_install + + if use python ; then + instpybind() { + python_domodule bin/rocket.py + exeinto "$(python_get_sitedir)" + doexe ${python_BUILD_DIR}-${EPYTHON}/_rocket{core,controls}.so + } + einfo "installing python binding" + python_foreach_impl instpybind + fi +} diff --git a/dev-libs/libRocket/metadata.xml b/dev-libs/libRocket/metadata.xml new file mode 100644 index 000000000000..89bd322f113a --- /dev/null +++ b/dev-libs/libRocket/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='samples'>Build samples</flag> + </use> +</pkgmetadata> + |