From 6c14fa2586d9e9c4427b5f727dc6c8ab77587cec Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 2 Jun 2018 10:47:13 +0100 Subject: gentoo resync : 02.06.2018 --- games-fps/duke3d-data/Manifest | 2 +- games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild | 77 ------------------------- games-fps/duke3d-data/duke3d-data-1.0-r4.ebuild | 75 ++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 78 deletions(-) delete mode 100644 games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild create mode 100644 games-fps/duke3d-data/duke3d-data-1.0-r4.ebuild (limited to 'games-fps/duke3d-data') diff --git a/games-fps/duke3d-data/Manifest b/games-fps/duke3d-data/Manifest index d356a57171d9..431aef1fb05d 100644 --- a/games-fps/duke3d-data/Manifest +++ b/games-fps/duke3d-data/Manifest @@ -1,3 +1,3 @@ DIST gog_duke_nukem_3d_atomic_edition_2.0.0.9.sh 31969896 BLAKE2B 7e93515f8aedaedf6f0dc90faf5e7fef165c000414ae9dc62bad77c78568ecdec1f16b72befe1c80c7c9c8c4bd7fb11f2fd3c36f53aa9ef9d787f8b7215228f3 SHA512 d06f20bc1334172b80e4a75bd3321c3835cd95ac823836899fda8d5f8667ac83471b04a5863646aa953a39fd1cb64eb1818ee668340ede62d0a356ebdcb4065c -EBUILD duke3d-data-1.0-r3.ebuild 1819 BLAKE2B 9670e17373dfddfb53af39a00a691443827769ed8e600c0ae73a33887020a3f22b84772ebc03374b09476874c6291a1f8ffc4a82f03e3dfdfa483d31eabdc4c9 SHA512 75a7d88f7096893028370c2d80969483b6fbe889173b0a45fd76b4362bfffbbdc8a63243b2a2f9a06930d7baeb387f2d5a5c0b167633893e6325763f766c46bf +EBUILD duke3d-data-1.0-r4.ebuild 1789 BLAKE2B e0487a217eb7e7452f26fbbf0ecd74e465c266144a01fb631f87261795fe25604067e7ed476cbd12d5f044020a5deadf8b6587149669a355735597222c97d609 SHA512 60e9c27f77748143e12ab76581183a091af3209496c26817b7709f96801e9043a3b9b355574e60fef7d90371850b872b0c0d984e888fffd92ee60c764f6a60a2 MISC metadata.xml 339 BLAKE2B afb442a147713d5f9000bb54afb2b62841086063b530f74a1da843ed7d08c3ffa995d98964f5e59b344c54eea7ea27ccc3eb563ea94e31452b352c80dc3848d3 SHA512 f5cfb8b76fafaea5c08660ecb9ed1a3d25efc85898b37a249c945547c4c4fc40335ec19711025955e12f6e3922f418f81e42c5dcc9a7f8ad82d3cc9dabbe50ef diff --git a/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild b/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild deleted file mode 100644 index a17e667056fc..000000000000 --- a/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -CDROM_OPTIONAL="yes" -inherit eutils cdrom unpacker games - -GOG_FILE="gog_duke_nukem_3d_atomic_edition_2.0.0.9.sh" -DESCRIPTION="Duke Nukem 3D data files" -HOMEPAGE="http://www.3drealms.com/" -SRC_URI="gog? ( ${GOG_FILE} )" - -LICENSE="DUKE3D gog? ( GOG-EULA )" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~x86" -IUSE="gog" -REQUIRED_USE="^^ ( cdinstall gog )" -RESTRICT="mirror bindist gog? ( fetch )" - -RDEPEND="|| ( games-fps/eduke32 games-fps/duke3d )" -DEPEND="gog? ( app-arch/unzip )" - -S=${WORKDIR} - -pkg_nofetch() { - einfo "Please download ${GOG_FILE} from your GOG.com account after buying Duke Nukem 3d" - einfo "and put it into ${DISTDIR}." -} - -src_unpack() { - if use cdinstall ; then - export CDROM_NAME_SET=( - "Existing Install" - "Duke Nukem 3D CD" - "Duke Nukem 3D Atomic Edition CD" - ) - cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp:atominst/duke3d.grp - - if [[ ${CDROM_SET} -ne 0 - && ${CDROM_SET} -ne 1 - && ${CDROM_SET} -ne 2 ]] - then - die "Error locating data files."; - fi - else - unpack_zip "${DISTDIR}"/${GOG_FILE} - cd data/noarch/data || die - - # convert to lowercase - find . -type f \ - -execdir sh -c 'echo "converting ${1} to lowercase" - lower="`echo "${1}" | tr [:upper:] [:lower:]`" - [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; - fi -} - -src_install() { - local DATAROOT - - insinto "${GAMES_DATADIR}"/duke3d - - if use cdinstall ; then - case ${CDROM_SET} in - 0) DATAROOT="" ;; - 1) DATAROOT="dn3dinst/" ;; - 2) DATAROOT="atominst/" ;; - esac - - # avoid double slash - doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con} - else - doins data/noarch/data/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con} - fi - - prepgamesdirs -} diff --git a/games-fps/duke3d-data/duke3d-data-1.0-r4.ebuild b/games-fps/duke3d-data/duke3d-data-1.0-r4.ebuild new file mode 100644 index 000000000000..100efef9882d --- /dev/null +++ b/games-fps/duke3d-data/duke3d-data-1.0-r4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +CDROM_OPTIONAL="yes" +inherit eutils cdrom unpacker + +GOG_FILE="gog_duke_nukem_3d_atomic_edition_2.0.0.9.sh" +DESCRIPTION="Duke Nukem 3D data files" +HOMEPAGE="http://www.3drealms.com/" +SRC_URI="gog? ( ${GOG_FILE} )" + +LICENSE="DUKE3D gog? ( GOG-EULA )" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="gog" +REQUIRED_USE="^^ ( cdinstall gog )" +RESTRICT="mirror bindist gog? ( fetch )" + +RDEPEND="|| ( games-fps/eduke32 games-fps/duke3d )" +DEPEND="gog? ( app-arch/unzip )" + +S=${WORKDIR} + +pkg_nofetch() { + einfo "Please download ${GOG_FILE} from your GOG.com account after buying Duke Nukem 3d" + einfo "and put it into ${DISTDIR}." +} + +src_unpack() { + if use cdinstall ; then + export CDROM_NAME_SET=( + "Existing Install" + "Duke Nukem 3D CD" + "Duke Nukem 3D Atomic Edition CD" + ) + cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp:atominst/duke3d.grp + + if [[ ${CDROM_SET} -ne 0 + && ${CDROM_SET} -ne 1 + && ${CDROM_SET} -ne 2 ]] + then + die "Error locating data files."; + fi + else + unpack_zip "${DISTDIR}"/${GOG_FILE} + cd data/noarch/data || die + + # convert to lowercase + find . -type f \ + -execdir sh -c 'echo "converting ${1} to lowercase" + lower="`echo "${1}" | tr [:upper:] [:lower:]`" + [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + fi +} + +src_install() { + local DATAROOT + + insinto /usr/share/duke3d + + if use cdinstall ; then + case ${CDROM_SET} in + 0) DATAROOT="" ;; + 1) DATAROOT="dn3dinst/" ;; + 2) DATAROOT="atominst/" ;; + esac + + # avoid double slash + doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con} + else + doins data/noarch/data/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con} + fi +} -- cgit v1.2.3