quilt.inc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \
  7. file://run-ptest \
  8. file://Makefile \
  9. file://test.sh \
  10. file://0001-tests-Allow-different-output-from-mv.patch \
  11. "
  12. SRC_URI[md5sum] = "c67ba0228f5b7b8bbe469474661f92d6"
  13. SRC_URI[sha256sum] = "f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819"
  14. inherit autotools-brokensep ptest
  15. CLEANBROKEN = "1"
  16. EXTRA_OECONF = "--with-perl='${USRBINPATH}/env perl' --with-patch=patch"
  17. CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash"
  18. # Make sure we don't have "-w" in shebang lines: it breaks using
  19. # "/usr/bin/env perl" as parser
  20. do_configure_prepend () {
  21. find ${S} -name "*.in" -exec sed -i -e "1s,^#\!.*@PERL@ -w$,#\! @PERL@\nuse warnings;," {} \;
  22. }
  23. # Don't setup symlinks to host utilities, we don't need them
  24. do_configure_append () {
  25. sed -e 's,^COMPAT_SYMLINKS.*:=.*,COMPAT_SYMLINKS :=,' -i ${S}/Makefile
  26. }
  27. # quilt Makefiles install to BUILD_ROOT instead of DESTDIR
  28. do_install () {
  29. oe_runmake 'BUILD_ROOT=${D}' install
  30. # cleanup unpackaged files
  31. rm -rf ${D}/${datadir}/emacs
  32. }
  33. do_compile_ptest() {
  34. oe_runmake bin/patch-wrapper test/.depend
  35. }
  36. do_install_ptest() {
  37. tar -c --exclude=\*.in bin/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  38. tar -c --exclude=\*.in compat/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  39. tar -c --exclude=\*.in quilt/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  40. tar -c --exclude=mail.test --exclude=delete.test test/ | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test)
  41. cp ${WORKDIR}/Makefile ${D}${PTEST_PATH}
  42. cp ${WORKDIR}/test.sh ${D}${PTEST_PATH}
  43. }
  44. PACKAGES += "guards guards-doc"
  45. FILES_${PN} = "${sysconfdir} ${datadir}/quilt \
  46. ${bindir}/quilt ${libdir}/quilt"
  47. FILES_guards = "${bindir}/guards"
  48. FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}"
  49. FILES_guards-doc = "${mandir}/man1/guards.1"
  50. RDEPENDS_${PN} = "bash"
  51. RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \
  52. perl-module-filehandle perl-module-getopt-std \
  53. perl-module-posix perl-module-file-temp \
  54. perl-module-text-parsewords perl-module-overloading \
  55. bash util-linux-getopt \
  56. "