[gentoo-commits] proj/betagarden:master commit in: sys-boot/grub-invaders/files/, sys-boot/grub-invaders/
commit: 383e767b937cad1a06caeb69d2140c5eda0533b3 Author: Sebastian Pipping pipping org> AuthorDate: Fri Jan 15 01:03:32 2016 + Commit: Sebastian Pipping gentoo org> CommitDate: Fri Jan 15 01:03:42 2016 + URL:https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=383e767b sys-boot/grub-invaders: Fix compilation sys-boot/grub-invaders/files/invaders-1.0.0-makefile | 5 +++-- sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild | 6 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile index 8a34f17..bfb33a8 100644 --- a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile +++ b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile @@ -1,13 +1,14 @@ -# Copyright (C) 2015 Sebastian Pipping+# Copyright (C) 2016 Sebastian Pipping # Licensed under GPL v2 or later. OBJCOPY = objcopy CPPFLAGS = -I. CFLAGS += -ffreestanding -m32 -nostdinc -nostdlib -I. -W -Wall +ASFLAGS = $(CFLAGS) LDFLAGS += -Wl,-N -Wl,-Ttext -Wl,10 -Wl,--build-id=none -O_FILES = $(patsubst %.c,%.o,$(wildcard *.c)) +O_FILES = $(patsubst %.S,%.o,$(wildcard *.S)) $(patsubst %.c,%.o,$(wildcard *.c)) all: invaders diff --git a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild index 5732efd..3bdca7b 100644 --- a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild +++ b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit versionator eutils +inherit toolchain-funcs versionator eutils MY_PN=invaders MY_PV="$(get_version_component_range 1-3)" @@ -28,6 +28,10 @@ src_prepare() { rm ${MY_PN} || die } +src_compile() { + emake CC=$(tc-getCC) +} + src_install() { dodoc README
[gentoo-commits] proj/betagarden:master commit in: sys-boot/grub-invaders/files/, sys-boot/grub-invaders/
commit: 8c2e565eb6b1abaa1add938213bda2a5f1721e6a Author: Sebastian Pipping sebastian AT pipping DOT org AuthorDate: Fri Jan 23 23:55:05 2015 + Commit: Sebastian Pipping sping AT gentoo DOT org CommitDate: Fri Jan 23 23:55:05 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=8c2e565e sys-boot/grub-invaders: 1.0.0_p12 --- .../grub-invaders/files/invaders-1.0.0-makefile| 23 + .../grub-invaders/grub-invaders-1.0.0_p12.ebuild | 39 ++ sys-boot/grub-invaders/metadata.xml| 8 + 3 files changed, 70 insertions(+) diff --git a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile new file mode 100644 index 000..8a34f17 --- /dev/null +++ b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile @@ -0,0 +1,23 @@ +# Copyright (C) 2015 Sebastian Pipping sebast...@pipping.org +# Licensed under GPL v2 or later. + +OBJCOPY = objcopy + +CPPFLAGS = -I. +CFLAGS += -ffreestanding -m32 -nostdinc -nostdlib -I. -W -Wall +LDFLAGS += -Wl,-N -Wl,-Ttext -Wl,10 -Wl,--build-id=none + +O_FILES = $(patsubst %.c,%.o,$(wildcard *.c)) + +all: invaders + +invaders.exec: $(O_FILES) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(O_FILES) + +invaders: invaders.exec + $(OBJCOPY) -O binary $ $@ + +clean: + $(RM) invaders invaders.exec $(O_FILES) + +.PHONY: all clean diff --git a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild new file mode 100644 index 000..0cdcc6c --- /dev/null +++ b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit versionator eutils + +MY_PN=invaders +MY_PV=$(get_version_component_range 1-3) +PATCH_V=${PV/*_p/} + +DESCRIPTION=Multi boot compliant kernel game +HOMEPAGE=http://www.erikyyy.de/invaders/; +SRC_URI=http://www.erikyyy.de/${MY_PN}/${MY_PN}-${MY_PV}.tar.gz + mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/${MY_PN}_${MY_PV}-${PATCH_V}.debian.tar.gz + +LICENSE=GPL-2 +SLOT=0 +KEYWORDS=~amd64 ~x86 +IUSE= + +S=${WORKDIR}/${MY_PN} + +src_prepare() { + cp ${FILESDIR}/${MY_PN}-${MY_PV}-makefile ${S}/Makefile || die + epatch ../debian/patches/*.patch + rm ${MY_PN} || die +} + +src_install() { + dodoc README + + insinto /usr/share/doc/${PF}/examples/ + doins ${WORKDIR}/debian/examples/grub-menu.lst + + exeinto /boot/ + doexe ${MY_PN} +} diff --git a/sys-boot/grub-invaders/metadata.xml b/sys-boot/grub-invaders/metadata.xml new file mode 100644 index 000..16bcc9f --- /dev/null +++ b/sys-boot/grub-invaders/metadata.xml @@ -0,0 +1,8 @@ +?xml version=1.0 encoding=UTF-8? +!DOCTYPE pkgmetadata SYSTEM http://www.gentoo.org/dtd/metadata.dtd; +pkgmetadata + maintainer + emailsp...@gentoo.org/email + nameSebastian Pipping/name + /maintainer +/pkgmetadata