From 987055310a9b3338c9b4494fdeb673afcf28a820 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Sat, 11 Apr 2020 20:37:56 +0900 Subject: x11-libs/sdl-fakeqwerty: use BDEPEND for pkgconfig and change package version to `0_pre20191217` as the project does not have official release yet. Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: YOSHIOKA Takuma --- x11-libs/sdl-fakeqwerty/Manifest | 2 +- .../sdl-fakeqwerty/files/Makefile-0_pre20191217 | 36 ++++++++++ x11-libs/sdl-fakeqwerty/files/Makefile-20191217 | 36 ---------- .../sdl-fakeqwerty-0_pre20191217.ebuild | 77 ++++++++++++++++++++++ .../sdl-fakeqwerty/sdl-fakeqwerty-20191217.ebuild | 77 ---------------------- 5 files changed, 114 insertions(+), 114 deletions(-) create mode 100644 x11-libs/sdl-fakeqwerty/files/Makefile-0_pre20191217 delete mode 100644 x11-libs/sdl-fakeqwerty/files/Makefile-20191217 create mode 100644 x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-0_pre20191217.ebuild delete mode 100644 x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-20191217.ebuild (limited to 'x11-libs') diff --git a/x11-libs/sdl-fakeqwerty/Manifest b/x11-libs/sdl-fakeqwerty/Manifest index 05256df7e..33db6f542 100644 --- a/x11-libs/sdl-fakeqwerty/Manifest +++ b/x11-libs/sdl-fakeqwerty/Manifest @@ -1 +1 @@ -DIST sdl-fakeqwerty-20191217.tar.gz 19099 BLAKE2B e75ab93a1c1e4a47c4a4a65e1842139768cdc0cf1333880ebf762c0ec5e9560af7af31a91928c89b115d10858045340c58dc3fbbc3fe4bf0887f9be3f4f6a12d SHA512 5487fc75f028254df82b2546e51909ae0db693e1989116812e35fac0c1bebebcd72d5eb5335a313074d93417e0d4cd831e14fde712856d98ad73d580794e1144 +DIST sdl-fakeqwerty-0_pre20191217.tar.gz 19099 BLAKE2B e75ab93a1c1e4a47c4a4a65e1842139768cdc0cf1333880ebf762c0ec5e9560af7af31a91928c89b115d10858045340c58dc3fbbc3fe4bf0887f9be3f4f6a12d SHA512 5487fc75f028254df82b2546e51909ae0db693e1989116812e35fac0c1bebebcd72d5eb5335a313074d93417e0d4cd831e14fde712856d98ad73d580794e1144 diff --git a/x11-libs/sdl-fakeqwerty/files/Makefile-0_pre20191217 b/x11-libs/sdl-fakeqwerty/files/Makefile-0_pre20191217 new file mode 100644 index 000000000..f99cae35d --- /dev/null +++ b/x11-libs/sdl-fakeqwerty/files/Makefile-0_pre20191217 @@ -0,0 +1,36 @@ +.PHONY: clean + +internal_CFLAGS = -shared -fPIC +internal_CFLAGS += $(CFLAGS) +internal_LDFLAGS = -ldl +internal_LDFLAGS += $(LDFLAGS) + +all: i686 amd64 + +i686: sdl1-hooks-i686.so sdl2-hooks-i686.so xlib-hooks-i686.so + +amd64: sdl1-hooks-amd64.so sdl2-hooks-amd64.so xlib-hooks-amd64.so + +sdl1-hooks-amd64.so: sdl1-hooks.c + $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +sdl1-peep-hooks-i686.so: sdl1-peep-hooks.c + $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +sdl1-peep-hooks-amd64.so: sdl1-peep-hooks.c + $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +sdl1-hooks-i686.so: sdl1-hooks.c + $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +sdl2-hooks-amd64.so: sdl2-hooks.c + $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +sdl2-hooks-i686.so: sdl2-hooks.c + $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +xlib-hooks-amd64.so: xlib-hooks.c + $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) + +xlib-hooks-i686.so: xlib-hooks.c + $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) diff --git a/x11-libs/sdl-fakeqwerty/files/Makefile-20191217 b/x11-libs/sdl-fakeqwerty/files/Makefile-20191217 deleted file mode 100644 index f99cae35d..000000000 --- a/x11-libs/sdl-fakeqwerty/files/Makefile-20191217 +++ /dev/null @@ -1,36 +0,0 @@ -.PHONY: clean - -internal_CFLAGS = -shared -fPIC -internal_CFLAGS += $(CFLAGS) -internal_LDFLAGS = -ldl -internal_LDFLAGS += $(LDFLAGS) - -all: i686 amd64 - -i686: sdl1-hooks-i686.so sdl2-hooks-i686.so xlib-hooks-i686.so - -amd64: sdl1-hooks-amd64.so sdl2-hooks-amd64.so xlib-hooks-amd64.so - -sdl1-hooks-amd64.so: sdl1-hooks.c - $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -sdl1-peep-hooks-i686.so: sdl1-peep-hooks.c - $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -sdl1-peep-hooks-amd64.so: sdl1-peep-hooks.c - $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -sdl1-hooks-i686.so: sdl1-hooks.c - $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -sdl2-hooks-amd64.so: sdl2-hooks.c - $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -sdl2-hooks-i686.so: sdl2-hooks.c - $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -xlib-hooks-amd64.so: xlib-hooks.c - $(CC) -m64 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) - -xlib-hooks-i686.so: xlib-hooks.c - $(CC) -m32 $(internal_CFLAGS) -o $@ $< $(internal_LDFLAGS) diff --git a/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-0_pre20191217.ebuild b/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-0_pre20191217.ebuild new file mode 100644 index 000000000..3c31b100f --- /dev/null +++ b/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-0_pre20191217.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MULTILIB_COMPAT=( abi_x86_{32,64} ) +inherit multilib-minimal + +DESCRIPTION="Fixes non-QWERTY keyboards on Prison Architect (and maybe other SDL games)" +HOMEPAGE="https://github.com/micolous/sdl-fakeqwerty" +ARCHIVE_VERSION="a79f201903c30e91dc3b4f79c789e25548cf9589" +SRC_URI="https://github.com/micolous/${PN}/archive/${ARCHIVE_VERSION}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${ARCHIVE_VERSION}" + +LICENSE="sdl? ( LGPL-2 ) sdl2? ( ZLIB ) xlib? ( ZLIB )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sdl sdl2 xlib" +REQUIRED_USE="|| ( sdl sdl2 xlib )" + +RDEPEND="" +DEPEND=" + xlib? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) + sdl? ( >=media-libs/libsdl-1.2[${MULTILIB_USEDEP}] ) + sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )" +BDEPEND="virtual/pkgconfig" + +DOCS=( README.md background.md games ) + +fakeqwerty_target() { + case "${MULTILIB_ABI_FLAG}" in + abi_x86_32) + echo 'i686' + ;; + abi_x86_64) + echo 'amd64' + ;; + *) + die "Unsupported ABI FLAG ${MULTILIB_ABI_FLAG}" + ;; + esac +} + +src_prepare() { + default + + cp -f "${FILESDIR}/Makefile-${PV}" "${S}/Makefile" || die + multilib_copy_sources +} + +multilib_src_compile() { + local target="$(fakeqwerty_target)" + CFLAGS="${CFLAGS} $(get_abi_CFLAGS)" + if use sdl ; then + emake CFLAGS="${CFLAGS} $(pkg-config --cflags sdl)" "sdl1-hooks-${target}.so" "sdl1-peep-hooks-${target}.so" || die + fi + if use sdl2 ; then + emake CFLAGS="${CFLAGS} $(pkg-config --cflags sdl2)" "sdl2-hooks-${target}.so" || die + fi + if use xlib ; then + emake CFLAGS="${CFLAGS} $(pkg-config --cflags x11)" "xlib-hooks-${target}.so" || die + fi +} + +multilib_src_install() { + local target="$(fakeqwerty_target)" + insinto "/usr/$(get_libdir)/sdl-fakeqwerty" + if use sdl ; then + newins "sdl1-hooks-${target}.so" "sdl1-hooks.so" || die + newins "sdl1-peep-hooks-${target}.so" "sdl1-peep-hooks.so" || die + fi + if use sdl2 ; then + newins "sdl2-hooks-${target}.so" "sdl2-hooks.so" || die + fi + if use xlib ; then + newins "xlib-hooks-${target}.so" "xlib-hooks.so" || die + fi +} diff --git a/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-20191217.ebuild b/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-20191217.ebuild deleted file mode 100644 index 6294fc483..000000000 --- a/x11-libs/sdl-fakeqwerty/sdl-fakeqwerty-20191217.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -MULTILIB_COMPAT=( abi_x86_{32,64} ) -inherit multilib-minimal - -DESCRIPTION="Fixes non-QWERTY keyboards on Prison Architect (and maybe other SDL games)" -HOMEPAGE="https://github.com/micolous/sdl-fakeqwerty" -ARCHIVE_VERSION="a79f201903c30e91dc3b4f79c789e25548cf9589" -SRC_URI="https://github.com/micolous/${PN}/archive/${ARCHIVE_VERSION}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${ARCHIVE_VERSION}" - -LICENSE="sdl? ( LGPL-2 ) sdl2? ( ZLIB ) xlib? ( ZLIB )" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="sdl sdl2 xlib" -REQUIRED_USE="|| ( sdl sdl2 xlib )" - -RDEPEND="" -DEPEND=" - virtual/pkgconfig - xlib? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) - sdl? ( >=media-libs/libsdl-1.2[${MULTILIB_USEDEP}] ) - sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )" - -DOCS=( README.md background.md games ) - -fakeqwerty_target() { - case "${MULTILIB_ABI_FLAG}" in - abi_x86_32) - echo 'i686' - ;; - abi_x86_64) - echo 'amd64' - ;; - *) - die "Unsupported ABI FLAG ${MULTILIB_ABI_FLAG}" - ;; - esac -} - -src_prepare() { - default - - cp -f "${FILESDIR}/Makefile-${PV}" "${S}/Makefile" || die - multilib_copy_sources -} - -multilib_src_compile() { - local target="$(fakeqwerty_target)" - CFLAGS="${CFLAGS} $(get_abi_CFLAGS)" - if use sdl ; then - emake CFLAGS="${CFLAGS} $(pkg-config --cflags sdl)" "sdl1-hooks-${target}.so" "sdl1-peep-hooks-${target}.so" || die - fi - if use sdl2 ; then - emake CFLAGS="${CFLAGS} $(pkg-config --cflags sdl2)" "sdl2-hooks-${target}.so" || die - fi - if use xlib ; then - emake CFLAGS="${CFLAGS} $(pkg-config --cflags x11)" "xlib-hooks-${target}.so" || die - fi -} - -multilib_src_install() { - local target="$(fakeqwerty_target)" - insinto "/usr/$(get_libdir)/sdl-fakeqwerty" - if use sdl ; then - newins "sdl1-hooks-${target}.so" "sdl1-hooks.so" || die - newins "sdl1-peep-hooks-${target}.so" "sdl1-peep-hooks.so" || die - fi - if use sdl2 ; then - newins "sdl2-hooks-${target}.so" "sdl2-hooks.so" || die - fi - if use xlib ; then - newins "xlib-hooks-${target}.so" "xlib-hooks.so" || die - fi -} -- cgit v1.2.3-65-gdbad