blob: 837b36ba8c94c6174d1edec0d7bc2b64290a3b76 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Tool for working with series of patches"
2HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/"
3SECTION = "devel"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6
7SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \
8 file://install.patch \
9 file://run-ptest \
10 file://Makefile \
11"
12
13SRC_URI[md5sum] = "fc0310db5868a0873d602d4332a76d43"
14SRC_URI[sha256sum] = "c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd"
15
16inherit autotools-brokensep ptest
17
18EXTRA_OECONF_darwin += "--without-date \
19 --without-getopt \
20 "
21
22CLEANBROKEN = "1"
23
24PACKAGES += "guards guards-doc"
25FILES_${PN} = "${sysconfdir} ${datadir}/quilt \
26 ${bindir}/quilt ${libdir}/quilt"
27FILES_guards = "${bindir}/guards"
28FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}"
29FILES_guards-doc = "${mandir}/man1/guards.1"
30
31RDEPENDS_${PN} = "bash"
32
33EXTRA_OE_MAKE_ARGS_darwin ?= ""
34EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}"
35
36CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash"
37
38# quilt ignores DESTDIR
39do_install () {
40 oe_runmake ${EXTRA_OE_MAKE_ARGS} install
41 # cleanup unpackaged files
42 rm -rf ${D}/${datadir}/emacs
43}
44
45do_compile_ptest() {
46 oe_runmake bin/patch-wrapper test/.depend
47}
48
49do_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
57RDEPENDS_${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 perl-module-overloading \
61 bash util-linux-getopt \
62 "