Skip to content

Instantly share code, notes, and snippets.

@benburkert
Forked from jedi4ever/dpkg-gnutar
Created August 10, 2011 19:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save benburkert/1137917 to your computer and use it in GitHub Desktop.
Save benburkert/1137917 to your computer and use it in GitHub Desktop.
homebrew formula to get dpkg working on a mac
require 'formula'
class Dpkg <Formula
url 'https://launchpad.net/debian/+archive/primary/+files/dpkg_1.16.0.3.tar.bz2'
homepage 'http://en.wikipedia.org/wiki/Dpkg'
md5 '0266b06ef9da8278cea008d21e17e5f6'
depends_on 'gnu-tar'
def patches
DATA
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-compiler-warnings",
"--disable-linker-optimisations",
"--disable-compiler-optimisations",
"--without-start-stop-daemon"
system "make install"
end
end
__END__
diff --git a/configure b/configure
index 7785655..98ddc71 100755
--- a/configure
+++ b/configure
@@ -8231,9 +8231,7 @@ else
$as_echo "no" >&6; }
fi
-PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
- $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
- print $r')
+PERL_LIBDIR="/System/Library/Perl/5.12"
for ac_prog in pod2man
do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment