Skip to content

Instantly share code, notes, and snippets.

@benburkert
Forked from tmm1/dpkg.rb
Created January 24, 2012 01:28
Show Gist options
  • Save benburkert/1667162 to your computer and use it in GitHub Desktop.
Save benburkert/1667162 to your computer and use it in GitHub Desktop.
homebrew formula to get dpkg working 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'
# depends_on 'cmake'
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",
"PERL_LIBDIR=/Library/Perl/5.10.0/ "
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
__END__
diff --git a/configure b/configure
index a4e8516..de7f226 100755
--- a/configure
+++ b/configure
@@ -8171,9 +8171,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="/Library/perl/5.10.0"
for ac_prog in pod2man
do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment