Files
Lawrence VelázquezandMojca Miklavec 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

53 lines
1.5 KiB
Plaintext

PortSystem 1.0
name cextract
version 1.7
categories devel
maintainers nomaintainer
description C prototype extractor
long_description \
cextract is ideal for generating header files for large multi-file C \
programs, and will provide an automated method for generating all of \
the prototypes for all of the functions in such a program. cextract \
also functions as a rudimentary documentation extractor, generating a \
sorted list of all functions and their locations.
platforms darwin
homepage http://www.cs.bu.edu/pub/adb/
master_sites ${homepage}
distname ${name}
dist_subdir ${name}/${version}
extract.suffix .tar.Z
checksums md5 c3afd8f535fa23000d35fc1ab37d1bf3 \
sha1 798033c7128d811ab63767cd1e8fd10536cd74b6 \
rmd160 f0087686b7f648fd97889e4f78767faa262af53a
# No uncompress option for distfiles, so extract manually
extract {
system "cd ${workpath} && uncompress -c ${distpath}/${distfiles} | tar xf -"
}
patchfiles patch-xtract.h.diff patch-io.c.diff
use_configure no
set sysrc SYSRC=${prefix}/etc/cext.config
build.target-append ${sysrc}
destroot.target-append install.man
destroot.destdir-append BINDIR=${prefix}/bin \
MANDIR=${prefix}/share/man/man ${sysrc}
post-activate {
system "${prefix}/bin/cextract -B"
}
platform darwin {
patchfiles-append patch-Makefile_darwin.diff
}
livecheck.type none