quilt.inc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. SUMMARY = "Tool for working with series of patches"
  2. DESCRIPTION = "Quilt is a tool to manage large sets of patches by keeping \
  3. track of the changes each patch makes. Patches can be applied, un-applied,\
  4. refreshed, etc."
  5. HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/"
  6. SECTION = "devel"
  7. LICENSE = "GPLv2"
  8. LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
  9. SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \
  10. file://run-ptest \
  11. file://Makefile \
  12. file://test.sh \
  13. file://0001-tests-Allow-different-output-from-mv.patch \
  14. "
  15. SRC_URI_append_class-target = " file://gnu_patch_test_fix_target.patch"
  16. SRC_URI[md5sum] = "6800c2404a2c0598ab2eff92a636ba70"
  17. SRC_URI[sha256sum] = "314b319a6feb13bf9d0f9ffa7ce6683b06919e734a41275087ea457cc9dc6e07"
  18. inherit autotools-brokensep ptest
  19. INHIBIT_AUTOTOOLS_DEPS_class-native = "1"
  20. PATCHTOOL_class-native = "patch"
  21. CLEANBROKEN = "1"
  22. EXTRA_OECONF = "--with-perl='${USRBINPATH}/env perl' --with-patch=patch"
  23. EXTRA_OECONF_append_class-native = " --disable-nls"
  24. EXTRA_AUTORECONF += "--exclude=aclocal"
  25. CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash"
  26. # Make sure we don't have "-w" in shebang lines: it breaks using
  27. # "/usr/bin/env perl" as parser
  28. do_configure_prepend () {
  29. find ${S} -name "*.in" -exec sed -i -e "1s,^#\!.*@PERL@ -w$,#\! @PERL@\nuse warnings;," {} \;
  30. }
  31. # Don't setup symlinks to host utilities, we don't need them
  32. do_configure_append () {
  33. sed -e 's,^COMPAT_SYMLINKS.*:=.*,COMPAT_SYMLINKS :=,' -i ${S}/Makefile
  34. }
  35. do_configure_class-native () {
  36. oe_runconf
  37. }
  38. # quilt Makefiles install to BUILD_ROOT instead of DESTDIR
  39. do_install () {
  40. oe_runmake 'BUILD_ROOT=${D}' install
  41. # cleanup unpackaged files
  42. rm -rf ${D}/${datadir}/emacs
  43. }
  44. do_install_append_class-native () {
  45. # Dummy quiltrc file for patch.bbclass
  46. install -d ${D}${sysconfdir}/
  47. touch ${D}${sysconfdir}/quiltrc
  48. }
  49. do_compile_ptest() {
  50. oe_runmake bin/patch-wrapper test/.depend
  51. }
  52. do_install_ptest() {
  53. tar -c --exclude=\*.in bin/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  54. tar -c --exclude=\*.in compat/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  55. tar -c --exclude=\*.in quilt/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  56. tar -c --exclude=mail.test --exclude=delete.test test/ | ( cd ${D}${PTEST_PATH} && tar -xf - && chmod 777 test)
  57. cp ${WORKDIR}/Makefile ${D}${PTEST_PATH}
  58. cp ${WORKDIR}/test.sh ${D}${PTEST_PATH}
  59. }
  60. PACKAGES += "guards guards-doc"
  61. FILES_${PN} = "${sysconfdir} ${datadir}/quilt \
  62. ${bindir}/quilt ${libdir}/quilt"
  63. FILES_guards = "${bindir}/guards"
  64. FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}"
  65. FILES_guards-doc = "${mandir}/man1/guards.1"
  66. RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux less"
  67. RDEPENDS_${PN}_class-native = "diffstat-native patch-native bzip2-native"
  68. RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \
  69. perl-module-filehandle perl-module-getopt-std \
  70. perl-module-posix perl-module-file-temp \
  71. perl-module-text-parsewords perl-module-overloading \
  72. bash util-linux-getopt patch \
  73. "