summaryrefslogtreecommitdiff
path: root/sys-apps/alix-leds
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-06-08 18:46:29 +0200
committerBertrand Jacquin <beber@meleeweb.net>2013-06-08 19:56:00 +0200
commit4139e7c14938ff1ab9a330c31db241a4b9d32b1e (patch)
tree43ec971c6f02efe944f4646ce75459e54c5b1525 /sys-apps/alix-leds
parentflx/dfc: Move from sys-apps, move to EAPI=5, respect CFLAGS and LDFLAGS (diff)
downloadportage-4139e7c14938ff1ab9a330c31db241a4b9d32b1e.tar.xz
sys-apps/alix-leds: Respect CFLAGS and LDFLAGS
Package-Manager: portage-2.1.12.3
Diffstat (limited to 'sys-apps/alix-leds')
-rw-r--r--sys-apps/alix-leds/ChangeLog4
-rw-r--r--sys-apps/alix-leds/Manifest8
-rw-r--r--sys-apps/alix-leds/alix-leds-3.0.ebuild7
-rw-r--r--sys-apps/alix-leds/files/alix-leds-3.0-nostrip.diff2
4 files changed, 15 insertions, 6 deletions
diff --git a/sys-apps/alix-leds/ChangeLog b/sys-apps/alix-leds/ChangeLog
index 1da9fa49..ab137465 100644
--- a/sys-apps/alix-leds/ChangeLog
+++ b/sys-apps/alix-leds/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 08 Jun 2013; Bertrand Jacquin <beber@meleeweb.net> alix-leds-3.0.ebuild,
+ files/alix-leds-3.0-nostrip.diff:
+ sys-apps/alix-leds: Respect CFLAGS and LDFLAGS
+
30 May 2013; Bertrand Jacquin <beber@meleeweb.net> alix-leds-3.0.ebuild:
Migrate to EAPI=5, this restore the usage of src_prepare
diff --git a/sys-apps/alix-leds/Manifest b/sys-apps/alix-leds/Manifest
index 2933033d..59845419 100644
--- a/sys-apps/alix-leds/Manifest
+++ b/sys-apps/alix-leds/Manifest
@@ -1,6 +1,6 @@
AUX alix-leds-3.0-libc.diff 362 SHA256 c30e43cc68d1f4e63068d43eec6e799c4868dd93aa61899bc4bd8d26376b50d7 WHIRLPOOL 8f87c7a35b988a5c128815c849f138bee8a4ad7a078a0e26c05a621c1437027309b88959ed7447406150908c423b4d79ddad2b472498f25a019dce5ca0af9136
-AUX alix-leds-3.0-nostrip.diff 677 SHA256 db99b7f4e7d88da5d0ad76afdd30e127f2e4254b50721b434c7bc12580a4962e WHIRLPOOL adbcf518111eb4afb00ea3a3b1609f9376085e3b762ebc6ff9f6d06cbb710215213d15180771eec208b7101b0dbe28d62bdc89739910b5b411e6e40b4e8bde5e
-DIST alix-leds-3.0.tgz 9815 SHA256 b2cb0e4641464a12d229aa40ee5580f8d5b2cf7e98f08c12c7503464bbac7b3f
-EBUILD alix-leds-3.0.ebuild 666 SHA256 b369da067be5b4c4a7b32c2c974d41c5d05b0935816f1dc384b6ccb4814193ae WHIRLPOOL 12150ebcc2f121c3937aa6e79becb8b6aa409c691b12b7528efe47ec590897905c4f41c7d9def2e86d458be8b9e058c2e56644386606c0d0c4458ff8aa78d7a6
-MISC ChangeLog 1012 SHA256 2a89bdcfa232fb74cb232d3f431f7013ee0486492ff6b27610e5dcae0a8fe502 WHIRLPOOL 1112737b510c351a09b603be87ee6bfa1fe71b5b4846a321eac837b294b90605cc5ae17102e2797cdb483d4437ea3b3f8a7c391ca402f48a5605a6c722c67b94
+AUX alix-leds-3.0-nostrip.diff 647 SHA256 b10bbe7dfc4f356b4d28e38c96c91dc85a9293c18b5d03d07d5dd6362b71bfaf WHIRLPOOL 63ad668dd1366b2c56d2e0c5cef71090193babf7aa40aed6a6b7fb7d47ca213b6fde96c7ef8c9578b16e8943db9dbf074da3397c4b37a9a7e8e1eb9eb2ce6d1b
+DIST alix-leds-3.0.tgz 9815 SHA256 b2cb0e4641464a12d229aa40ee5580f8d5b2cf7e98f08c12c7503464bbac7b3f WHIRLPOOL 473d9aca2ca334a541f722b41d7e544a0e618bed9c1cd99a63af7ef3215634bb19fbf828f676947311da2280c915eaae1371944963eb3ebb3a368abae54f7a52
+EBUILD alix-leds-3.0.ebuild 808 SHA256 f88c1da8f88a231bbb9693b3d27e257c8ea63b26b4e77561c7fd68848b9d0bb0 WHIRLPOOL d6f7686b8ea4ab1bfa42fb1e02f542a6400e3e59b5e3a36d165cf4e9f0bfc960487ad4272db6054780ca0258d9ec2a60bf13629e3b549178c663786a0a11e898
+MISC ChangeLog 1173 SHA256 9b4b2169197efc4f4e79f0f26481e1a1f7a8068413b4641a0487500f34a1d418 WHIRLPOOL 371da7191dd310789eae5165e337094e3f5f6e67d9809b50e9e41874db84ac0ab0656376c0e8c7b10490f1080204145b5b0164644ac5b9e6ed439d2aad4fd205
MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/sys-apps/alix-leds/alix-leds-3.0.ebuild b/sys-apps/alix-leds/alix-leds-3.0.ebuild
index a096691d..e317bf99 100644
--- a/sys-apps/alix-leds/alix-leds-3.0.ebuild
+++ b/sys-apps/alix-leds/alix-leds-3.0.ebuild
@@ -15,11 +15,16 @@ KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
-RDEPEND=""
+RDEPEND="${DEPEND}"
src_prepare () {
epatch "${FILESDIR}/${P}-nostrip.diff"
epatch "${FILESDIR}/${P}-libc.diff"
+
+ sed -ri \
+ -e "/^CFLAGS/ s:-Os -mpreferred-stack-boundary=2:${CFLAGS}:" \
+ -e "/^LDFLAGS/ s:=:=${LDFLAGS}:" \
+ "${S}/Makefile"
}
src_compile () {
diff --git a/sys-apps/alix-leds/files/alix-leds-3.0-nostrip.diff b/sys-apps/alix-leds/files/alix-leds-3.0-nostrip.diff
index 8657208f..f5782319 100644
--- a/sys-apps/alix-leds/files/alix-leds-3.0-nostrip.diff
+++ b/sys-apps/alix-leds/files/alix-leds-3.0-nostrip.diff
@@ -5,7 +5,7 @@
CFLAGS = -fomit-frame-pointer -Wall -Os -mpreferred-stack-boundary=2
-LDFLAGS = -s -Wl,--gc-sections #-Wl,--sort-section=alignment
-+LDFLAGS = -Wl,--gc-sections #-Wl,--sort-section=alignment
++LDFLAGS = -Wl,--gc-sections
CC_ORIG := $(CC)
override CC := $(DIET) $(CC)