diff options
Diffstat (limited to 'meta/recipes-support/attr/attr.inc')
-rw-r--r-- | meta/recipes-support/attr/attr.inc | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc index 3503d66b9e..f13a83a7b4 100644 --- a/meta/recipes-support/attr/attr.inc +++ b/meta/recipes-support/attr/attr.inc | |||
@@ -8,22 +8,18 @@ LICENSE = "LGPLv2.1+ & GPLv2+" | |||
8 | LICENSE_${PN} = "GPLv2+" | 8 | LICENSE_${PN} = "GPLv2+" |
9 | LICENSE_lib${BPN} = "LGPLv2.1+" | 9 | LICENSE_lib${BPN} = "LGPLv2.1+" |
10 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ | 10 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ |
11 | file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ | 11 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ |
12 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" | 12 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" |
13 | 13 | ||
14 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.src.tar.gz \ | 14 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ |
15 | file://run-ptest \ | 15 | file://run-ptest \ |
16 | " | 16 | " |
17 | 17 | ||
18 | require ea-acl.inc | 18 | inherit ptest update-alternatives autotools gettext |
19 | 19 | ||
20 | # libdir should point to .la | 20 | PACKAGES =+ "lib${BPN}" |
21 | do_install_append() { | ||
22 | sed -i ${D}${libdir}/libattr.la -e \ | ||
23 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', | ||
24 | } | ||
25 | 21 | ||
26 | inherit ptest update-alternatives | 22 | FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" |
27 | 23 | ||
28 | ALTERNATIVE_PRIORITY = "100" | 24 | ALTERNATIVE_PRIORITY = "100" |
29 | ALTERNATIVE_${PN} = "setfattr" | 25 | ALTERNATIVE_${PN} = "setfattr" |
@@ -33,14 +29,34 @@ PTEST_BUILD_HOST_FILES = "builddefs" | |||
33 | PTEST_BUILD_HOST_PATTERN = "^RPM" | 29 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
34 | 30 | ||
35 | do_install_ptest() { | 31 | do_install_ptest() { |
36 | tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) | 32 | cp ${B}/Makefile ${D}${PTEST_PATH} |
37 | mkdir ${D}${PTEST_PATH}/include | 33 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
38 | for i in builddefs buildmacros buildrules; \ | 34 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
39 | do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \ | 35 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
40 | done | 36 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
41 | sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile | 37 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
38 | -i ${D}${PTEST_PATH}/Makefile | ||
39 | |||
40 | sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | ||
41 | sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | ||
42 | sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile | ||
43 | sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile | ||
44 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} | ||
45 | cp -rf ${S}/test/ ${D}${PTEST_PATH} | ||
42 | } | 46 | } |
43 | 47 | ||
44 | RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix make perl" | 48 | RDEPENDS_${PN}-ptest = "attr \ |
49 | coreutils \ | ||
50 | perl-module-filehandle \ | ||
51 | perl-module-getopt-std \ | ||
52 | perl-module-posix \ | ||
53 | make \ | ||
54 | perl \ | ||
55 | gawk \ | ||
56 | perl-module-cwd \ | ||
57 | perl-module-file-basename \ | ||
58 | perl-module-file-path \ | ||
59 | perl-module-file-spec \ | ||
60 | " | ||
45 | 61 | ||
46 | BBCLASSEXTEND = "native nativesdk" | 62 | BBCLASSEXTEND = "native nativesdk" |