diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /games-fps/industri | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'games-fps/industri')
-rw-r--r-- | games-fps/industri/Manifest | 8 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-exec-stack.patch | 16 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-glext.patch | 4 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-ldflags.patch | 4 | ||||
-rw-r--r-- | games-fps/industri/industri-1.01.ebuild | 50 |
5 files changed, 47 insertions, 35 deletions
diff --git a/games-fps/industri/Manifest b/games-fps/industri/Manifest index 641cc08c2f07..74a6115fb9f1 100644 --- a/games-fps/industri/Manifest +++ b/games-fps/industri/Manifest @@ -1,8 +1,8 @@ -AUX industri-1.01-exec-stack.patch 642 BLAKE2B cc7ab05c14499a2075605bb2a3b818eed7b219e92b49d90ad777d74481387ac20cae3e85611e9150644ffdb99014c25aceb2c678889332ec4d97b1801f27824e SHA512 c23b38be46b3b692f7b04415b2893c9884d76e627910f9e93579c286e2142fd36bff0c335beffd541226920ce22dfbdb6ffc51537b42afe6d660466905c7be3e -AUX industri-1.01-glext.patch 983 BLAKE2B 370d7c55d61e38716e84d0af84772b186312a46e12d3bcabf74e2a3d43708798ad7ffda2f1881e8355246ea67b0b7a5f4caddcfa3b5f670dca181e11d95b5e51 SHA512 0d17e3c54fdce139a25b9c51892cf7d9c9b04b0fe2d4f543cabdce141cfe321892dbc630f40ba3e75ffb1612f6c1df5d4108f95d3a06bce3b7f49601cbb2282a -AUX industri-1.01-ldflags.patch 840 BLAKE2B a4187070a6205de7187cb606baf9e7ae7ab5332d6e4c53c24cc3329fbc29fdd4e10bcf3f340dca9f2df5abfa594b10e902a7625940a411df4cbbb102479dddce SHA512 fc45f5edb2dfabf8815186c66cf071f119cb0c83cd785fa3be083bbcb1be11c1c898f73f7b1b3d3af83c95daddbc0fe226cfaa0ed9c0b9776d718a10562b496e +AUX industri-1.01-exec-stack.patch 658 BLAKE2B 0b6dc3dd385f3bb7d00748e7c32c3e2ec135359427b4766c27314056fc2cdcf657018be05c04d95b6ac53ccb86da8a56b8b59624e50df9d73a44bb2d7fcc0b29 SHA512 d3b6c712f79612265a31eaeccae3b9688bcfb7916be34e1b9dc6e698c33750f82b323fa51cb09768546c3cdf55bc80fadf0cbc46d4e478ca126ac4124fa06765 +AUX industri-1.01-glext.patch 911 BLAKE2B e6b54ef2a984b8613cd02fdcd9910398899bd8999f9c2b58b59dfc9a68e00e5087335c9294a7b6ee0b19b92026a322a9af4adb55c33201ebfc10a138a086c749 SHA512 f78358f8a384dd0fc86dcb3adbeb92b3768209224ef90b3fbae2850b998b78f5cd495cc1d4978c87860cfdbd3b4d8ac5f525679aecdfe46c82e6ca7a92b90729 +AUX industri-1.01-ldflags.patch 768 BLAKE2B 9f46a1d428ec4c27927f72ee9dc349df6668d94d81276dc21b4e732be03bcf8456d39db9ed2d852921e80020808f796dc0c93b4c32f2ccd114901cb1883465bf SHA512 008685528843429adea440d30d00d34f526205d41c14ca7758a30cc8946e501cffbf94c051a93cc4c5f339fc084d9d80bc71d82b28d7fa6a353648ae6b18a92a AUX industri.pretty 42 BLAKE2B 2a53501c32d6b88a2d56c3560a6f55b4fe62c53a5aa659854b0c2dc2e440bc36572dee3e11bde73bcda30c03e0532d3977e7a17810bd721571a13a74ce0d63e1 SHA512 4cd0732b3a9cc3a48a759b68b03c249c854ce90234984ca770f8e3fc61e7bd01651012d64320d9114eb4567ccab254b183af15bdce51dee25a71c35613013df1 DIST industri-1.00.zip 30339989 BLAKE2B e673bef0e5b79a9081ffe48c9e106de8f3900c3e57d8a9af3f48942a2257305e58b74a41c0338f5349c0414847415547c5bb86c8f4c42a8f41adb7b8621215e0 SHA512 e0eea9d881819fbcc039d91ed613bb4603e76302c892ed315bf1535b023173b742f4b881dc345f9eaca255a5531e3afc5584c2da948a9c6127c9a815a6bfcae9 DIST industri_BIN-1.01-src.tar.gz 1086838 BLAKE2B 82a88fc640834c8c56deb9a30ea36cfaf7a631b4d1773a4bde588b64b56ab1471f54975fc5a250546685201829a790fd334f973826372dfb32f1abc0a2c3a761 SHA512 023dfcc72faa685a042afcf66b21e040b21c881f3d936af9e4da3e7836320a262c014296ab6fa564d93038c34a106f70f7cc8dd760c6b79e11689df92bff3625 -EBUILD industri-1.01.ebuild 1837 BLAKE2B 28e1565e2214fe15a5b1cdcd480e7950c8454ab7cc2c60312a73c6f6a09456fce8874f61a88c3367175671166d6e2f45777e5aec23b3c7a753e4971f9660d707 SHA512 092ed982e86942cb9d81aef4f26d530b4385fcb0a70b2442a918f3ffb6aa40f561c7097d4c5e193ffccb2b6bc85b132ea7de4861d94b9db226b256956e000f6d +EBUILD industri-1.01.ebuild 1865 BLAKE2B ec4506a5cac8cbd707152c1409160f9c661de448b3b79f55f39a15d2bcd2415148e8c07ea5dbbb5c5f35c7e00e8ed373be4d3da92b377e49e149e387b2cda9a9 SHA512 789b33e8d064fa72f20541832e34115c04d9ed1fdfd8390e88f86dbccd35c8613d48cb6cafc69cd98cf2d413f009c23bcb0dda17fed4e29b56d67bec95768a45 MISC metadata.xml 753 BLAKE2B 58d04346b2529f24ebb8558c2ae7c15b0677f2c22951a0ecfb5367e706632b92a5c2e8196a2d010409214aa0da24b655c5a9b0055ff0cc144b8210ff4c257248 SHA512 fe652528480dd111ae034805ffe48a75682fef68562e8ad55218f0b41b3ab05fd99d1b33b0959a09ed3fad97fe66d8171efd8e79f5472956aa42ac3263e6f9b0 diff --git a/games-fps/industri/files/industri-1.01-exec-stack.patch b/games-fps/industri/files/industri-1.01-exec-stack.patch index bc74e951fe6a..abc8bd4a2b87 100644 --- a/games-fps/industri/files/industri-1.01-exec-stack.patch +++ b/games-fps/industri/files/industri-1.01-exec-stack.patch @@ -1,5 +1,5 @@ ---- math.s -+++ math.s +--- a/math.s ++++ b/math.s @@ -416,3 +416,6 @@ call C(BOPS_Error) @@ -7,8 +7,8 @@ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif ---- snd_mixa.s -+++ snd_mixa.s +--- a/snd_mixa.s ++++ b/snd_mixa.s @@ -216,3 +216,6 @@ #endif // id386 @@ -16,8 +16,8 @@ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif ---- sys_dosa.s -+++ sys_dosa.s +--- a/sys_dosa.s ++++ b/sys_dosa.s @@ -93,3 +93,6 @@ ret @@ -25,8 +25,8 @@ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif ---- worlda.s -+++ worlda.s +--- a/worlda.s ++++ b/worlda.s @@ -142,3 +142,6 @@ #endif // id386 diff --git a/games-fps/industri/files/industri-1.01-glext.patch b/games-fps/industri/files/industri-1.01-glext.patch index 8a5042e431f2..9c23bebd965a 100644 --- a/games-fps/industri/files/industri-1.01-glext.patch +++ b/games-fps/industri/files/industri-1.01-glext.patch @@ -1,5 +1,5 @@ ---- glquake.h.old 2011-04-29 12:36:53.000000000 +0200 -+++ glquake.h 2011-04-29 12:44:39.000000000 +0200 +--- a/glquake.h ++++ b/glquake.h @@ -977,6 +977,7 @@ #define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F diff --git a/games-fps/industri/files/industri-1.01-ldflags.patch b/games-fps/industri/files/industri-1.01-ldflags.patch index 987d464f6b48..2ce762d82988 100644 --- a/games-fps/industri/files/industri-1.01-ldflags.patch +++ b/games-fps/industri/files/industri-1.01-ldflags.patch @@ -1,5 +1,5 @@ ---- linux/Makefile.old 2010-10-13 11:37:27.000000000 +0200 -+++ linux/Makefile 2010-10-13 11:38:20.000000000 +0200 +--- a/linux/Makefile ++++ b/linux/Makefile @@ -42,7 +42,7 @@ RELEASE_CFLAGS = $(BASE_CFLAGS) -O2 -march=pentium4 -pipe -msse -mfpmath=sse \ -fomit-frame-pointer -fexpensive-optimizations diff --git a/games-fps/industri/industri-1.01.ebuild b/games-fps/industri/industri-1.01.ebuild index 70c8dba417f3..11e294ca141f 100644 --- a/games-fps/industri/industri-1.01.ebuild +++ b/games-fps/industri/industri-1.01.ebuild @@ -1,13 +1,15 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils toolchain-funcs games +EAPI=7 + +inherit toolchain-funcs DESCRIPTION="Quake/Tenebrae based, single player game" HOMEPAGE="http://industri.sourceforge.net/" SRC_URI="mirror://sourceforge/industri/industri_BIN-${PV}-src.tar.gz mirror://sourceforge/industri/industri-1.00.zip" +S="${WORKDIR}"/industri_BIN LICENSE="GPL-2" SLOT="0" @@ -21,15 +23,24 @@ RDEPEND="virtual/opengl x11-libs/libXxf86vm media-libs/libpng:0 cdinstall? ( games-fps/quake1-data )" -DEPEND="${RDEPEND} +DEPEND=" + ${RDEPEND} x11-base/xorg-proto - app-arch/unzip" +" +BDEPEND="app-arch/unzip" -S=${WORKDIR}/industri_BIN +PATCHES=( + "${FILESDIR}"/${P}-exec-stack.patch + "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-glext.patch +) src_prepare() { - mv linux/Makefile{.i386linux,} - sed -i -e "s:-mpentiumpro.*:${CFLAGS} \\\\:" linux/Makefile || die + mv linux/Makefile{.i386linux,} || die + sed -i \ + -e "s:-mpentiumpro.*:${CFLAGS} \\\\:" \ + -e "s:CC.*= /usr/bin/gcc:CC?=/usr/bin/gcc:" \ + linux/Makefile || die # Remove duplicated typedefs #71841 for typ in PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC PFNGLVERTEXARRAYRANGEAPPLEPROC ; do @@ -44,34 +55,35 @@ src_prepare() { -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \ gl_warp.c || die - epatch "${FILESDIR}"/${P}-exec-stack.patch \ - "${FILESDIR}"/${P}-ldflags.patch \ - "${FILESDIR}"/${P}-glext.patch + default } src_compile() { + tc-export CC + emake \ -C linux \ - MASTER_DIR="${GAMES_DATADIR}"/quake1 \ + MASTER_DIR=/usr/share/quake1 \ build_release } src_install() { - newgamesbin linux/release*/bin/industri.run industri - dogamesbin "${FILESDIR}"/industri.pretty + newbin linux/release*/bin/industri.run industri + dobin "${FILESDIR}"/industri.pretty + insinto /usr/share/icons doins industri.ico quake.ico dodoc linux/README - cd "${WORKDIR}"/${PN} + + cd "${WORKDIR}"/${PN} || die dodoc *.txt - insinto "${GAMES_DATADIR}"/quake1/${PN} + + insinto /usr/share/quake1/${PN} doins *.pak *.cfg - prepgamesdirs } pkg_postinst() { - games_pkg_postinst if ! use cdinstall ; then - elog "You need to copy pak0.pak to ${GAMES_DATADIR}/quake1 to play." + elog "You need to copy pak0.pak to /usr/share/quake1 to play." fi } |