Git.pm: Avoid ppport.h
This makes us not include ppport.h which seems not to give us anything real anyway; it is useful for checking for portability warts but since Devel::PPPort is a portability wart itself, we shouldn't require it for build. You can check for portability problems by calling make check in perl/. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Jul 2, 2006 at 01:48 UTC
e2a38710941775761298d0bd7e6be2e7039fcd3d
2 files changed
+5
-7
perl/Git.xs
-2
@@ -15,8 +15,6 @@
15
#include "perl.h"
16
#include "XSUB.h"
17
18
-#include "ppport.h"
19
-
18
#undef die
19
20
perl/Makefile.PL
+5
-5
@@ -5,6 +5,11 @@ sub MY::postamble {
5
instlibdir:
6
@echo '$(INSTALLSITEARCH)'
7
8
+check:
9
+ perl -MDevel::PPPort -le 'Devel::PPPort::WriteFile(".ppport.h")' && \
10
+ perl .ppport.h --compat-version=5.6.0 Git.xs && \
11
+ rm .ppport.h
12
+
13
MAKE_FRAG
14
}
15
@@ -24,8 +29,3 @@ WriteMakefile(
29
MYEXTLIB => '../libgit.a',
30
INC => '-I. -I..',
31
);
27
-
28
-
29
-use Devel::PPPort;
30
-
31
--s 'ppport.h' or Devel::PPPort::WriteFile();