diff options
author | 2018-06-28 15:39:46 +0800 | |
---|---|---|
committer | 2018-06-28 12:26:56 +0100 | |
commit | 02f8aff020762e77bf49587115f6b8fbc96296c9 (patch) | |
tree | 7c667f8ba68cf3e8987d374cfa130e07570fd34b /meta/recipes-devtools/file/file_5.33.bb | |
parent | 40a904bf8bc1279c3da0893c003f740f1d2066c2 (diff) | |
download | openembedded-core-contrib-02f8aff020762e77bf49587115f6b8fbc96296c9.tar.gz |
file: update to 5.33
Drop 0001-Add-P-prompt-into-Usage-info.patch since it is already fixed
upstream.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file/file_5.33.bb')
-rw-r--r-- | meta/recipes-devtools/file/file_5.33.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file_5.33.bb b/meta/recipes-devtools/file/file_5.33.bb new file mode 100644 index 0000000000..4126422b38 --- /dev/null +++ b/meta/recipes-devtools/file/file_5.33.bb @@ -0,0 +1,47 @@ +SUMMARY = "File classification tool" +DESCRIPTION = "File attempts to classify files depending \ +on their contents and prints a description if a match is found." +HOMEPAGE = "http://www.darwinsys.com/file/" +SECTION = "console/utils" + +# two clause BSD +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188" + +DEPENDS = "zlib file-replacement-native" +DEPENDS_class-native = "zlib-native" + +# Blacklist a bogus tag in upstream check +UPSTREAM_CHECK_GITTAGREGEX = "FILE(?P<pver>(?!6_23).+)" + +SRC_URI = "git://github.com/file/file.git \ + file://debian-742262.patch \ + " + +SRCREV = "219846094c7593e27453e62855e61181089c48cf" +S = "${WORKDIR}/git" + +inherit autotools + +EXTRA_OEMAKE_append_class-target = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" +EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" + +CFLAGS_append = " -std=c99" + +FILES_${PN} += "${datadir}/misc/*.mgc" + +do_install_append_class-native() { + create_cmdline_wrapper ${D}/${bindir}/file \ + --magic-file ${datadir}/misc/magic.mgc +} + +do_install_append_class-nativesdk() { + create_cmdline_wrapper ${D}/${bindir}/file \ + --magic-file ${datadir}/misc/magic.mgc +} + +BBCLASSEXTEND = "native nativesdk" +PROVIDES_append_class-native = " file-replacement-native" +# Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who +# depends on file-replacement-native. +bindir_append_class-native = "/file-native" |