sys-fs/tux3progs: update makefile add bin and tesbin target

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1226 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-05-18 05:18:27 +00:00
parent 35c13b0474
commit bb0c2bdcad
4 changed files with 31 additions and 11 deletions

View File

@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
18 May 2009; Mario Fetka <mario.fetka@gmail.com>
files/tux3-dist-packager-2.patch, tux3progs-9999.ebuild:
update makefile add bin and tesbin target
18 May 2009; Mario Fetka <mario.fetka@gmail.com>
+files/tux3-dist-packager-2.patch, tux3progs-9999.ebuild:
update makefile

View File

@ -1,6 +1,6 @@
AUX tux3-dist-packager-1.patch 2136 RMD160 19cdf75b888b2b4f843538742b770d7293576eb2 SHA1 4d4ccbba9aa3fd994472cfa2973f6980714a3060 SHA256 f86d2b17d7769136f212dd2479c1d978967deb88caac848a7da861beccccb8e5
AUX tux3-dist-packager-2.patch 2316 RMD160 ed6e8918a9e2e2e6907046a92c7aba41f454bca1 SHA1 333e14cf86ca770fd41e7d01b021242ddc528901 SHA256 d901589ec8bd16eb85492aec5bf6309f381c68a5a6ab1b0cbe50c7e567343b0c
AUX tux3-dist-packager-2.patch 2643 RMD160 02a7f5c6ebfa06c904e657cd5f548895825526f4 SHA1 efc06bbf4558f47ced7fc0a54df1aa7ac5b9a3a3 SHA256 fdefb843be5f16836143cf49f3e6a5bf6e4e39d1d09b917fad256b67a645846a
AUX tux3-gcc44-1.patch 2569 RMD160 98b8df81f5a9809eefb04fad5d29aca000159d56 SHA1 a9d1d38af5bd1516426de2f3c6a902930851bcae SHA256 057783f2b3224f6307c4239d40654d9abe34986dd5527f282da9fdad61cd791c
EBUILD tux3progs-9999.ebuild 741 RMD160 439ee3b5780861af7826386766335e3d6ea5dac3 SHA1 431c36f06dc9d764516c243406f5d0615a151d92 SHA256 85b2166005b6b0f74ca321c07b7140158eb5b979525d84207274f3d786d1af5f
MISC ChangeLog 880 RMD160 885037a52d38a8fe6574a50d31c5a413536640ff SHA1 c96861e3c752aca86005074ef2208a1c2a9865aa SHA256 03a0585827139e25f145831d4c1cfac1ebc6cb85b934599ccb4045bb078e5a9a
EBUILD tux3progs-9999.ebuild 944 RMD160 c321387a001ae85a8ad94a53b5930473a536e299 SHA1 5185fe09a9e8a6acd3b1a3ef733da82e39d61d29 SHA256 b35401890ea7c8cb5975f0d52373663fac3c927a16fd466f65ae583733328de6
MISC ChangeLog 1035 RMD160 0cec1206088c6c776b9a5eabf94d9f8f93e11214 SHA1 ff07f6b899c7f731568fdd64579358ba0154aa8c SHA256 b5628baf1787bdd08cc123f871f0c513fdccc114cecf76d677a9944356e4751a
MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5

View File

@ -3,11 +3,11 @@ Date: 2009-05-18
Initial Package Version: changeset cb5655728089
Origin: me
Upstream Status: unknown
Description: add install target and add LDFLAGS for overwrite
Description: add new targets bin: testbin: install: install-bin: install-test: and add LDFLAGS
diff -Naur tux3.orig/user/Makefile tux3/user/Makefile
--- tux3.orig/user/Makefile 2009-05-17 20:13:43.438558904 +0000
+++ tux3/user/Makefile 2009-05-18 04:44:55.927761560 +0000
+++ tux3/user/Makefile 2009-05-18 05:06:31.057509039 +0000
@@ -11,20 +11,30 @@
CFLAGS += -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers
CFLAGS += $(UCFLAGS)
@ -41,7 +41,17 @@ diff -Naur tux3.orig/user/Makefile tux3/user/Makefile
endif
tuxdeps = Makefile trace.h kernel/trace.h
@@ -93,8 +103,8 @@
@@ -53,6 +63,9 @@
tests: test_buffer test_balloc test_commit test_dleaf test_ileaf \
test_btree test_dir test_iattr test_xattr test_filemap test_inode
+bin: $(tux3bin)
+testbin: $(testbin)
+
# standalone and library
buffer.o: $(tuxdeps) $(bufferdeps)
diskio.o: $(tuxdeps) $(diskiodeps)
@@ -93,8 +106,8 @@
$(CHECKER) $(CFLAGS) -Dbuild_$(<:.c=) $(CHECKFLAGS) -c $<
endif
@ -52,7 +62,7 @@ diff -Naur tux3.orig/user/Makefile tux3/user/Makefile
test_buffer: buffer
$(VG) ./buffer
@@ -130,7 +140,7 @@
@@ -130,7 +143,7 @@
$(VG) ./commit foodev
tux3fuse: utility.o tux3fuse.o
@ -61,7 +71,7 @@ diff -Naur tux3.orig/user/Makefile tux3/user/Makefile
ifeq ($(CHECK),1)
$(CHECKER) $(CFLAGS) $(CHECKFLAGS) $$(pkg-config --cflags fuse) tux3fuse.c
endif
@@ -160,3 +170,13 @@
@@ -160,3 +173,13 @@
distclean: clean
rm -f *.orig kernel/*.orig

View File

@ -13,7 +13,7 @@ EHG_REPO_URI="http://hg.tux3.org/tux3/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="test"
RDEPEND="sys-fs/fuse"
DEPEND=""
@ -26,9 +26,15 @@ src_prepare() {
}
src_compile() {
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "build failed"
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" bin || die "build failed"
if use test; then
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" testbin || die "build failed"
fi
}
src_install() {
emake DISTDIR="${D}" SBINDIR="/usr/sbin" LIBEXECDIR="/usr/libexec/tux3" install || die "install failed"
emake DISTDIR="${D}" PREFIX="/usr" install-bin || die "install failed"
if use test; then
use test && emake DISTDIR="${D}" PREFIX="/usr" install-test || die "install failed"
fi
}