On 22/10/11 12:23 PM, Anil Madhavapeddy wrote:
I've got a few new OCaml ports that use .tbz as their distribution suffix. Is 
the below patch ok to put in, to invoke bunzip2 on them?

I have a port that needs this too.

Index: mk/bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1114
diff -u -r1.1114 bsd.port.mk
--- mk/bsd.port.mk      3 Oct 2011 15:46:33 -0000       1.1114
+++ mk/bsd.port.mk      22 Oct 2011 16:21:18 -0000
@@ -1118,7 +1118,7 @@
  .if !empty(EXTRACT_ONLY:M*.tar.xz)
  _USE_XZ ?= Yes
  .endif
-.if !empty(EXTRACT_ONLY:M*.tar.bz2) || !empty(EXTRACT_ONLY:M*.tbz2) || \
+.if !empty(EXTRACT_ONLY:M*.tar.bz2) || !empty(EXTRACT_ONLY:M*.tbz2) || 
!empty(EXTRACT_ONLY:M*.tbz) || \
         (defined(PATCHFILES)&&  !empty(_PATCHFILES:M*.bz2))
  _USE_BZIP2 ?= Yes
  .endif
@@ -1143,7 +1143,7 @@
  .endif
  .if ${_USE_BZIP2:L} != "no"
  BUILD_DEPENDS += archivers/bzip2
-EXTRACT_CASES += *.tar.bz2|*.tbz2) \
+EXTRACT_CASES += *.tar.bz2|*.tbz2|*.tbz) \
         ${BZIP2} -dc ${FULLDISTDIR}/$$archive | ${TAR} xf -;;
  .endif
  EXTRACT_CASES += *.tar) \




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to