Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | file://run-ptest \ |
| 9 | file://Makefile \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | file://test.sh \ |
| 11 | file://0001-tests-Allow-different-output-from-mv.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | " |
| 13 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | SRC_URI[md5sum] = "c67ba0228f5b7b8bbe469474661f92d6" |
| 15 | SRC_URI[sha256sum] = "f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | inherit autotools-brokensep ptest |
| 18 | |
| 19 | EXTRA_OECONF_darwin += "--without-date \ |
| 20 | --without-getopt \ |
| 21 | " |
| 22 | |
| 23 | CLEANBROKEN = "1" |
| 24 | |
| 25 | PACKAGES += "guards guards-doc" |
| 26 | FILES_${PN} = "${sysconfdir} ${datadir}/quilt \ |
| 27 | ${bindir}/quilt ${libdir}/quilt" |
| 28 | FILES_guards = "${bindir}/guards" |
| 29 | FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" |
| 30 | FILES_guards-doc = "${mandir}/man1/guards.1" |
| 31 | |
| 32 | RDEPENDS_${PN} = "bash" |
| 33 | |
| 34 | EXTRA_OE_MAKE_ARGS_darwin ?= "" |
| 35 | EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}" |
| 36 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 37 | EXTRA_OECONF = "--with-perl='${USRBINPATH}/env perl' --with-patch=patch" |
| 38 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" |
| 40 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | # Make sure we don't have "-w" in shebang lines: it breaks using |
| 42 | # "/usr/bin/env perl" as parser |
| 43 | do_configure_prepend () { |
| 44 | find ${S} -name "*.in" -exec sed -i -e "1s,^#\!.*@PERL@ -w$,#\! @PERL@\nuse warnings;," {} \; |
| 45 | } |
| 46 | |
| 47 | # Don't setup symlinks to host utilities, we don't need them |
| 48 | do_configure_append () { |
| 49 | sed -e 's,^COMPAT_SYMLINKS.*:=.*,COMPAT_SYMLINKS :=,' -i ${S}/Makefile |
| 50 | } |
| 51 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 52 | # quilt ignores DESTDIR |
| 53 | do_install () { |
| 54 | oe_runmake ${EXTRA_OE_MAKE_ARGS} install |
| 55 | # cleanup unpackaged files |
| 56 | rm -rf ${D}/${datadir}/emacs |
| 57 | } |
| 58 | |
| 59 | do_compile_ptest() { |
| 60 | oe_runmake bin/patch-wrapper test/.depend |
| 61 | } |
| 62 | |
| 63 | do_install_ptest() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 64 | tar -c --exclude=\*.in bin/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
| 65 | tar -c --exclude=\*.in compat/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
| 66 | tar -c --exclude=\*.in quilt/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
| 67 | tar -c --exclude=mail.test --exclude=delete.test test/ | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 68 | cp ${WORKDIR}/Makefile ${D}${PTEST_PATH} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 69 | cp ${WORKDIR}/test.sh ${D}${PTEST_PATH} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ |
| 73 | perl-module-filehandle perl-module-getopt-std \ |
| 74 | perl-module-posix perl-module-file-temp \ |
| 75 | perl-module-text-parsewords perl-module-overloading \ |
| 76 | bash util-linux-getopt \ |
| 77 | " |