Skip to content

Instantly share code, notes, and snippets.

@leereilly
Forked from benburkert/dpkg.rb
Created October 26, 2011 20:02
Show Gist options
  • Save leereilly/1317630 to your computer and use it in GitHub Desktop.
Save leereilly/1317630 to your computer and use it in GitHub Desktop.
homebrew formula to get dpkg working a mac
require 'formula'
class Dpkg <Formula
url 'http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.1.1.tar.bz2'
md5 '73fb4d67dbc9f9f14a776187429ce3f1'
homepage 'http://en.wikipedia.org/wiki/Dpkg'
def patches
#Fixes the PERL_LIBDIR
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 daf82b6..383a3a8 100755
--- a/configure
+++ b/configure
@@ -8173,8 +8173,8 @@ else
$as_echo "no" >&6; }
fi
-PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
- $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
+PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{sitelibexp};
+ $r =~ s/$Config{siteprefixexp}/\$(prefix)/;
print $r')
for ac_prog in pod2man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment