Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Last active December 15, 2015 13:48
Show Gist options
  • Save kazeburo/5269483 to your computer and use it in GitHub Desktop.
Save kazeburo/5269483 to your computer and use it in GitHub Desktop.
diff -ur Alien-RRDtool-0.03.orig/Makefile.PL Alien-RRDtool-0.03/Makefile.PL
--- Alien-RRDtool-0.03.orig/Makefile.PL 2012-05-17 14:41:03.000000000 +0900
+++ Alien-RRDtool-0.03/Makefile.PL 2013-03-29 17:13:39.000000000 +0900
@@ -18,6 +18,7 @@
print "# => ", scalar mirror($rrdtool, "$name.tar.gz"), "\n";
print "# unpacking $name.tar.gz\n";
system("tar", "xzf", "$name.tar.gz");
+system("cd ${name}-1.4.7 && cat ../rrdtool.patch | patch -p1");
rmtree($name);
my $version = do {
my @dirs = <rrdtool-*>;
diff -ur Alien-RRDtool-0.03.orig/inc/MyBuilder.pm Alien-RRDtool-0.03/inc/MyBuilder.pm
--- Alien-RRDtool-0.03.orig/inc/MyBuilder.pm 2012-05-17 14:41:03.000000000 +0900
+++ Alien-RRDtool-0.03/inc/MyBuilder.pm 2013-03-29 17:17:18.000000000 +0900
@@ -28,6 +28,8 @@
my $prefix = $CWD . '/' . $self->notes('installdir');
mkpath($prefix);
+ $ENV{PKG_CONFIG_PATH} = join ":", </usr/local/Cellar/*/*/lib/pkgconfig>, '/usr/X11/lib/pkgconfig', '/usr/local/lib/pkgconfig';
+
my $bindir = $self->install_destination('bin');
{
local $CWD = $self->notes('name');
diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb
index c291812..9a991ee 100644
--- a/Library/Formula/rrdtool.rb
+++ b/Library/Formula/rrdtool.rb
@@ -76,3 +76,24 @@ index 7487ad2..e7b85c1 100755
echo
echo "----------------------------------------------------------------"
echo "Config is DONE!"
+--- a/src/rrd_graph.c 2012-01-24 19:08:48.000000000 +0900
++++ b/src/rrd_graph.c 2013-03-29 14:13:53.000000000 +0900
+@@ -4066,6 +4066,8 @@
+ static PangoFontMap *fontmap = NULL;
+ PangoContext *context;
+
++ g_type_init();
++
+ #ifdef HAVE_TZSET
+ tzset();
+ #endif
+
diff --git a/configure b/configure
index 7487ad2..e7b85c1 100755
--- a/configure
+++ b/configure
@@ -31663,18 +31663,6 @@ $as_echo_n "checking in... " >&6; }
{ $as_echo "$as_me:$LINENO: result: and out again" >&5
$as_echo "and out again" >&6; }
-echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-echo $ECHO_N ".$ECHO_C" 1>&6
-sleep 1
-{ $as_echo "$as_me:$LINENO: result: just kidding ;-)" >&5
-$as_echo " just kidding ;-)" >&6; }
echo
echo "----------------------------------------------------------------"
echo "Config is DONE!"
--- a/src/rrd_graph.c 2012-01-24 19:08:48.000000000 +0900
+++ b/src/rrd_graph.c 2013-03-29 14:13:53.000000000 +0900
@@ -4066,6 +4066,8 @@
static PangoFontMap *fontmap = NULL;
PangoContext *context;
+ g_type_init();
+
#ifdef HAVE_TZSET
tzset();
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment