summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-25 06:29:51 +0000
committerSam James <sam@gentoo.org>2021-02-25 06:36:09 +0000
commit6c33f04eb2a4bddc30f01bc2d44613010ffd080f (patch)
treece0f304d2e6ecccdcc2beb73a442f3eaf0a18498 /dev-games
parentdev-games/ois: port 1.3 to EAPI 7 (diff)
downloadgentoo-6c33f04eb2a4bddc30f01bc2d44613010ffd080f.tar.gz
gentoo-6c33f04eb2a4bddc30f01bc2d44613010ffd080f.tar.bz2
gentoo-6c33f04eb2a4bddc30f01bc2d44613010ffd080f.zip
dev-games/ois: bump to 1.5
Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/ois/Manifest1
-rw-r--r--dev-games/ois/files/ois-1.5-libdir.patch31
-rw-r--r--dev-games/ois/ois-1.5.ebuild24
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-games/ois/Manifest b/dev-games/ois/Manifest
index 4610d18db104..8c9fffb98f24 100644
--- a/dev-games/ois/Manifest
+++ b/dev-games/ois/Manifest
@@ -1 +1,2 @@
+DIST ois-1.5.tar.gz 552786 BLAKE2B 2ac2d1d74c03804cdc1c0b8cd1e2a3661d9edfc8ae230d036f108dbffd6d8aa5778e2f708b468fd3364c0ba403d07b04c1744eb5a11b39d658ef5a21943a9df3 SHA512 5ab1dda7c25c1959ccbbb758ea3fda36bd62ad65f46e2c6b418317a5eb39e0bace52a44ae079dfb69fc58c90df54f8e50d589daae1100ec615325363c9d77513
DIST ois_v1-3.tar.gz 136739 BLAKE2B 88dd3af2c8b253d9cacc5c65510c150ba50c6a47c1c2cd241bf366f38fba0560a7cef08392e338984e8b172020c4a4c37e5eab024fabc695b2f06f93393850ed SHA512 48b7355a9be9c66233691aa5461192fb6e537d284e4366ebf931a76ee3be30f2cf17a4aa350fce6b433eaecf4259414062b9dd5854eaf872b9a18294cfc640c3
diff --git a/dev-games/ois/files/ois-1.5-libdir.patch b/dev-games/ois/files/ois-1.5-libdir.patch
new file mode 100644
index 000000000000..acd635c550b9
--- /dev/null
+++ b/dev-games/ois/files/ois-1.5-libdir.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a5da3b7..90a8b77 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -210,8 +210,7 @@ if (OIS_BUILD_DEMOS)
+
+ endif()
+
+-set(LIB_INSTALL_DIR "lib")
+-set(OIS_LIB_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR})
++set(OIS_LIB_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+
+ file(GLOB PUBLIC_HEADERS "${CMAKE_SOURCE_DIR}/includes/*.h")
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 90a8b77..3c1fe95 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -219,9 +219,9 @@ install(FILES ${PUBLIC_HEADERS}
+ )
+
+ install(TARGETS OIS
+- RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ FRAMEWORK DESTINATION Library/Frameworks
+ )
+
diff --git a/dev-games/ois/ois-1.5.ebuild b/dev-games/ois/ois-1.5.ebuild
new file mode 100644
index 000000000000..42b171168830
--- /dev/null
+++ b/dev-games/ois/ois-1.5.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Object-oriented Input System - A cross-platform C++ input handling library"
+HOMEPAGE="https://github.com/wgois/OIS"
+SRC_URI="https://github.com/wgois/OIS/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${P^^}"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+DEPEND="
+ x11-libs/libXaw
+ x11-libs/libX11
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.5-libdir.patch"
+)