diff options
Diffstat (limited to 'sys-firmware/sgabios')
-rw-r--r-- | sys-firmware/sgabios/Manifest | 8 | ||||
-rw-r--r-- | sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch | 23 | ||||
-rw-r--r-- | sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch | 12 | ||||
-rw-r--r-- | sys-firmware/sgabios/metadata.xml | 12 | ||||
-rw-r--r-- | sys-firmware/sgabios/sgabios-0.1_pre8.ebuild | 49 |
5 files changed, 104 insertions, 0 deletions
diff --git a/sys-firmware/sgabios/Manifest b/sys-firmware/sgabios/Manifest new file mode 100644 index 000000000000..0d5368ea9bf6 --- /dev/null +++ b/sys-firmware/sgabios/Manifest @@ -0,0 +1,8 @@ +AUX sgabios-0.1_pre8-build-cc.patch 467 SHA256 2f4365cf78f11dc902ef137358cd1ac09c9fc9698fd28e023d4703f01819a198 SHA512 2d160bc5be76c2abdd7a53dc1555f0d40ea2ddedbcc4a0138b547b9391ac2f99c002906f68851549b4fb3103406f4643c35bc2278b4dcda7e4c7054f095c65e3 WHIRLPOOL 903b30af6ecb15e72404e7dd1395b2ffdd4aa625c7863630cbdca84645f2ddf269b90df97f8378f55aad94842616b0db79f4ca3a2b19aac711acc02aa18866ae +AUX sgabios-0.1_pre8-makefile.patch 395 SHA256 d618fc84175cd31c8f8dc7887ad448455e4a404af272b242fac4013235b657cc SHA512 7c111af2fff59b0ca6d4b39d04715d404bffa0f71a337b43f7dd091af6e40e85b790ed8b560039d5702d07e1ae47f2c204e891373f11d2ee4aa1541cb471c566 WHIRLPOOL 056f71911a94e90781bf677b8a06903a45a94cf708d743169b2974ba4472220c9875685faa387c20831a9827984b188287de812ca032ff395c33373de9736786 +DIST sgabios-0.1_pre8-bins.tar.xz 2704 SHA256 f982ec467790432f6be662bd58b51e78f80184229ecab5f23d4c0ea2419c1b9d SHA512 46fc02200b3fa2e45c954a2b6e4cd40f10d6969fd05ef4d441402c7390b4e83390250972ef0ea891635400cad22a4d8fd2b66b56afa91d03e1e0b99132e09c0d WHIRLPOOL 7b30b6a40f7b8d5b03482179f48c23910283e45f8eaac538533b5d24289d1ada6d0e6e5ecac3260e46dedc2a1e325fa096b3ae505b96fd1716e98f80be0d209e +DIST sgabios-0.1_pre8.tar.xz 27200 SHA256 d6f01fe343828c3323c45c000b5a2f906f1c3aa6f788ca8b31669b4a05a3d31d SHA512 68e2a894eb5b99cda2b0e96ade891e24397ac962a777a97dbb526f4570e5734d36a88fde1ef64ed7a887cd8bfc500c91c48849d2c26aca6ce7e36dd80aaf361e WHIRLPOOL de12b91a0304d6465186b9959d873061205bb055823408c84370a7563b46acd7cc955eab6e8b78a54d928bbb65281a9236e4c434fc5df707c5fffc160e311bd2 +EBUILD sgabios-0.1_pre8.ebuild 1153 SHA256 d8868b70c450805fd0277c007f70b1298d8b2b4cd5314f742121432144bce73f SHA512 ffbd86b27008e068716712cc605990d1c230d3a347a589cc9595763d798dc991ac1984376dd0813711d2833b99cd0689fa7bb11547248372f5645214d6d8ddcf WHIRLPOOL e937994baf28b6deb9ae25c012c659577885c04c91b79afc0f761ef5dfe0d98a786f2bc13500161aa847515d899d78273806db1cc51aa843db972b82e330f1a3 +MISC ChangeLog 3336 SHA256 99ab8b4fbec20ec3f3ecbc677162073276022cb41a8c122e0d95b10663ee0c31 SHA512 284ea5d9745aaa1b0a5266efe66b8afaa1b5e6590f8dde2f56fdb27a9476c68c548328c04fd7f1e9b4768be6fd75847761c3f28f86318fc4b753baf1b045bbac WHIRLPOOL f6323f408933fbceea197002c4e1ca82cfb20bbf47a70cfe2d217e6f1539c19ff8e49f27e28591558f3813606fad679a3cae3fc90e2b1c360d5b1270b34672de +MISC ChangeLog-2015 1458 SHA256 b44b770e1ce03217b30da55e2b953cb5daef009cc887e978d377bdb6de8c9818 SHA512 e504a8224d19e8b7d5219826342406d4e75fb2e81d34dd5993d1676094fd2c934ba041e79d3be2924b124a36f55e3bdc84f1425e35a8e41e0771b5bd8ae8e825 WHIRLPOOL a9bdabd55ac9f159a1405c0358b223b5aa72aab86cd50254119f757f10a120be5b70d48d99b7e1b9925744f8c5a21b82be46e66a4d5feada77871d5636e14fbc +MISC metadata.xml 360 SHA256 46241d96e312a8974c5a1679c04e37583739d96e05333972973306109449d190 SHA512 e11d9866b6743687df4e32cd3079b6c086b77fe8544a342a16152ad9a2f6ce42b79aadd47aa9a3270b17a09f4137fa6eb1fa3990518231b7f546b3557f9ed067 WHIRLPOOL e3ca915af59f4d2fe6154382801c73b7091aa4e3ebdcdb2f8140927bb835586abbf936a6312a3eca8f08786de7b819ad9a1f67c8fe2c8ddac996b97384b4f1b0 diff --git a/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch b/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch new file mode 100644 index 000000000000..6cdac84c6acb --- /dev/null +++ b/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/552280 + +--- a/Makefile ++++ b/Makefile +@@ -20,6 +20,9 @@ + BUILD_USER = \"$(shell whoami)\" + + CFLAGS := -Wall -Os -m32 -nostdlib ++BUILD_CFLAGS := -Wall -O2 ++BUILD_CC ?= $(CC) ++BUILD_LD ?= $(BUILD_CC) + + ASFLAGS := $(CFLAGS) + ASFLAGS += -DBUILD_DATE="$(BUILD_DATE)" +@@ -55,7 +56,7 @@ + $(LD) $(LDFLAGS) $(OBJS) -o $@ + + csum8: csum8.c +- $(CC) -Wall -O2 -o $@ $< ++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ $< + + sgabios.o: buildinfo + diff --git a/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch b/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch new file mode 100644 index 000000000000..18e636f4e88e --- /dev/null +++ b/sys-firmware/sgabios/files/sgabios-0.1_pre8-makefile.patch @@ -0,0 +1,12 @@ +diff -u sgabios-0.1_pre8/Makefile sgabios-0.1_pre8-fix//Makefile +--- sgabios-0.1_pre8/Makefile 2012-07-21 17:16:41.903363117 -0500 ++++ sgabios-0.1_pre8-fix//Makefile 2012-07-23 11:11:08.438162997 -0500 +@@ -71,8 +71,4 @@ + + ifeq (.depend, $(wildcard .depend)) + include .depend +-else +-# if no .depend file existed, add a make clean to the end of building .depend +-.depend:: +- $(MAKE) clean + endif diff --git a/sys-firmware/sgabios/metadata.xml b/sys-firmware/sgabios/metadata.xml new file mode 100644 index 000000000000..0d341c6a91bb --- /dev/null +++ b/sys-firmware/sgabios/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>cardoe@gentoo.org</email> + <name>Doug Goldstein</name> + </maintainer> + <maintainer type="project"> + <email>qemu@gentoo.org</email> + <name>Gentoo QEMU Project</name> + </maintainer> + </pkgmetadata> diff --git a/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild b/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild new file mode 100644 index 000000000000..b062b9588e3c --- /dev/null +++ b/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="serial graphics adapter bios option rom for x86" +HOMEPAGE="https://code.google.com/p/sgabios/" +SRC_URI="mirror://gentoo/${P}.tar.xz + https://dev.gentoo.org/~cardoe/distfiles/${P}.tar.xz + https://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + epatch "${FILESDIR}"/${P}-build-cc.patch #552280 + epatch_user +} + +src_compile() { + if use amd64 || use x86 ; then + tc-ld-disable-gold + tc-export_build_env BUILD_CC + emake \ + BUILD_CC="${BUILD_CC}" \ + BUILD_CFLAGS="${BUILD_CFLAGS}" \ + BUILD_LDFLAGS="${BUILD_LDFLAGS}" \ + BUILD_CPPFLAGS="${BUILD_CPPFLAGS}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + AR="$(tc-getAR)" \ + OBJCOPY="$(tc-getOBJCOPY)" + fi +} + +src_install() { + insinto /usr/share/sgabios + + if use amd64 || use x86 ; then + doins sgabios.bin + else + doins bins/sgabios.bin + fi +} |