diff options
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt.inc')
| -rw-r--r-- | meta/recipes-devtools/quilt/quilt.inc | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc new file mode 100644 index 0000000000..ac7ef93e1e --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt.inc | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | SUMMARY = "Tool for working with series of patches" | ||
| 2 | HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/" | ||
| 3 | SECTION = "devel" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
| 6 | |||
| 7 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \ | ||
| 8 | file://install.patch \ | ||
| 9 | file://run-ptest \ | ||
| 10 | file://Makefile \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRC_URI[md5sum] = "fc0310db5868a0873d602d4332a76d43" | ||
| 14 | SRC_URI[sha256sum] = "c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd" | ||
| 15 | |||
| 16 | inherit autotools-brokensep ptest | ||
| 17 | |||
| 18 | EXTRA_OECONF_darwin += "--without-date \ | ||
| 19 | --without-getopt \ | ||
| 20 | " | ||
| 21 | |||
| 22 | CLEANBROKEN = "1" | ||
| 23 | |||
| 24 | PACKAGES += "guards guards-doc" | ||
| 25 | FILES_${PN} = "${sysconfdir} ${datadir}/quilt \ | ||
| 26 | ${bindir}/quilt ${libdir}/quilt" | ||
| 27 | FILES_guards = "${bindir}/guards" | ||
| 28 | FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" | ||
| 29 | FILES_guards-doc = "${mandir}/man1/guards.1" | ||
| 30 | |||
| 31 | RDEPENDS_${PN} = "bash" | ||
| 32 | |||
| 33 | EXTRA_OE_MAKE_ARGS_darwin ?= "" | ||
| 34 | EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}" | ||
| 35 | |||
| 36 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" | ||
| 37 | |||
| 38 | # quilt ignores DESTDIR | ||
| 39 | do_install () { | ||
| 40 | oe_runmake ${EXTRA_OE_MAKE_ARGS} install | ||
| 41 | # cleanup unpackaged files | ||
| 42 | rm -rf ${D}/${datadir}/emacs | ||
| 43 | } | ||
| 44 | |||
| 45 | do_compile_ptest() { | ||
| 46 | oe_runmake bin/patch-wrapper test/.depend | ||
| 47 | } | ||
| 48 | |||
| 49 | do_install_ptest() { | ||
| 50 | tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
| 51 | tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
| 52 | tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
| 53 | tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
| 54 | cp ${WORKDIR}/Makefile ${D}${PTEST_PATH} | ||
| 55 | } | ||
| 56 | |||
| 57 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ | ||
| 58 | perl-module-filehandle perl-module-getopt-std \ | ||
| 59 | perl-module-posix perl-module-file-temp \ | ||
| 60 | perl-module-text-parsewords bash \ | ||
| 61 | " | ||
