Ticket #12681: unarj-doc-universal.diff
File unarj-doc-universal.diff, 2.2 KB (added by nox@…, 17 years ago) |
---|
-
files/patch-Makefile
1 --- Makefile-orig Wed May 12 13:08:29 19992 +++ Makefile Tue Aug 3 14:52:46 20043 @@ -3,10 +3,10 @@4 #5 6 CC = gcc7 -CFLAGS = -O2 -Wall -ansi -pedantic -DUNIX8 +CFLAGS = -O2 -Wall -DUNIX9 INSTALLDIR=/usr/local/bin10 11 -unarj: unarj.o decode.o environ.o12 +all: unarj.o decode.o environ.o13 $(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o14 strip unarj15 -
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 4 5 name unarj 5 6 version 2.63a 7 revision 1 6 8 categories archivers sysutils 7 9 description extract files from dos .arj archives 8 10 maintainers jc@crazic.ru 11 9 12 long_description ${description} 13 10 14 homepage http://ibiblio.org/pub/Linux/utils/compress/ 11 master_sites http://ibiblio.org/pub/Linux/utils/compress/ 12 checksums md5 a83d139c245f911f22cb1b611ec9768f 15 master_sites ${homepage} 13 16 14 patchfiles patch-Makefile 17 checksums md5 a83d139c245f911f22cb1b611ec9768f \ 18 sha1 abd35d894444fea1a0bdc7472ed2346f0f8c6ba4 \ 19 rmd160 cebee016ffc2b7eb74a13f8246d82ea68519e500 15 20 16 build.target all 17 use_configure no 21 build.target unarj 18 22 19 destroot { 20 xinstall -m 755 -d ${destroot}/${prefix}/bin 21 xinstall -m 755 -d ${destroot}/${prefix}/share/doc/unarj 22 file copy ${build.dir}/unarj ${destroot}/${prefix}/bin 23 file copy ${build.dir}/unarj.txt ${destroot}/${prefix}/share/doc/unarj 23 configure { 24 reinplace -E "/^CFLAGS/s|-ansi -pedantic|[join ${configure.cflags} " "]|" ${worksrcpath}/Makefile 24 25 } 25 26 26 universal_variant no 27 destroot.destdir INSTALLDIR=${destroot}${prefix}/bin 28 29 post-destroot { 30 set docdir ${prefix}/share/doc/${name}-${version} 31 xinstall -d ${destroot}${docdir} 32 xinstall -m 0644 ${worksrcpath}/unarj.txt ${destroot}${docdir} 33 } 34 35 livecheck.check regex 36 livecheck.url ${homepage}?C=M&O=D 37 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\[a-z\]) 38