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 \ |
| 8 | file://install.patch \ |
| 9 | file://run-ptest \ |
| 10 | file://Makefile \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 11 | file://test.sh \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | SRC_URI[md5sum] = "fc0310db5868a0873d602d4332a76d43" |
| 15 | SRC_URI[sha256sum] = "c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd" |
| 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 | |
| 37 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" |
| 38 | |
| 39 | # quilt ignores DESTDIR |
| 40 | do_install () { |
| 41 | oe_runmake ${EXTRA_OE_MAKE_ARGS} install |
| 42 | # cleanup unpackaged files |
| 43 | rm -rf ${D}/${datadir}/emacs |
| 44 | } |
| 45 | |
| 46 | do_compile_ptest() { |
| 47 | oe_runmake bin/patch-wrapper test/.depend |
| 48 | } |
| 49 | |
| 50 | do_install_ptest() { |
| 51 | tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
| 52 | tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
| 53 | tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 54 | tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 55 | cp ${WORKDIR}/Makefile ${D}${PTEST_PATH} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 56 | cp ${WORKDIR}/test.sh ${D}${PTEST_PATH} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ |
| 60 | perl-module-filehandle perl-module-getopt-std \ |
| 61 | perl-module-posix perl-module-file-temp \ |
| 62 | perl-module-text-parsewords perl-module-overloading \ |
| 63 | bash util-linux-getopt \ |
| 64 | " |