forked from toddr/kitenet-pristine-tar
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nasty MakeMaker conversion for perl library support
Had to move zgz.pod to subdir because MakeMaker insisted in installing it otherwise.
- Loading branch information
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Run ./Makefile.PL to generate a Makefile, then run `make` and `make install`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,47 @@ | ||
build: zgz/zgz pristine-tar.spec | ||
#!/usr/bin/perl | ||
use warnings; | ||
use strict; | ||
use ExtUtils::MakeMaker; | ||
|
||
# Add a few more targets. | ||
sub MY::postamble { | ||
q{ | ||
all:: extra_build | ||
clean:: extra_clean | ||
install:: extra_install | ||
pure_install:: extra_install | ||
extra_build: zgz/zgz pristine-tar.spec | ||
pod2man -c pristine-tar pristine-tar > pristine-tar.1 | ||
pod2man -c pristine-gz pristine-gz > pristine-gz.1 | ||
pod2man -c pristine-bz2 pristine-bz2 > pristine-bz2.1 | ||
pod2man -c zgz zgz.pod > zgz.1 | ||
pod2man -c zgz zgz/zgz.pod > zgz.1 | ||
ZGZ_SOURCES = zgz/zgz.c zgz/bits.c zgz/deflate.c zgz/gzip.c zgz/trees.c zgz/util.c \ | ||
zgz/old-bzip2/*.c | ||
zgz/zgz: $(ZGZ_SOURCES) zgz/gzip.h | ||
gcc -Wall -O2 -lz -o $@ $(ZGZ_SOURCES) | ||
install: | ||
extra_install: | ||
install -d $(DESTDIR)/usr/bin | ||
install -d $(DESTDIR)/usr/share/man/man1 | ||
install pristine-tar pristine-gz pristine-bz2 zgz/zgz $(DESTDIR)/usr/bin | ||
install -m 0644 *.1 $(DESTDIR)/usr/share/man/man1 | ||
clean: pristine-tar.spec | ||
extra_clean: pristine-tar.spec | ||
rm -f zgz/zgz *.1 | ||
pristine-tar.spec: | ||
sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" pristine-tar.spec | ||
.PHONY: pristine-tar.spec | ||
} | ||
} | ||
|
||
WriteMakefile( | ||
NAME => 'Pristine::Tar', | ||
PREFIX => "/usr/local", | ||
MAN1PODS => {}, | ||
MAN3PODS => {}, | ||
PMLIBDIRS => ["Pristine"], | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#!/usr/bin/make -f | ||
%: | ||
dh $@ | ||
|
||
override_dh_auto_configure: | ||
# keeps it out of /usr/local | ||
dh_auto_configure -- PREFIX=/usr | ||
|
||
override_dh_auto_clean: | ||
# distclean moans about MANIFEST, this is quieter | ||
if [ -e Makefile ]; then $(MAKE) realclean; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.