mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
for pf in */*/Portfile
do
ed -s "$pf" <<-'EOF'
1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
1g/^[[:space:]]*$/d
w
q
EOF
done
47 lines
1.6 KiB
Tcl
47 lines
1.6 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
|
|
name tnef2txt
|
|
version 1.4
|
|
revision 1
|
|
categories textproc
|
|
platforms darwin
|
|
maintainers nomaintainer
|
|
|
|
description Converts Microsoft TNEF attachments to ASCII text
|
|
|
|
long_description This is a simple program used to decode Microsoft's \
|
|
Translation Neutral Encapsulation Format (TNEF), which \
|
|
is used by various Microsoft OS products to transfer \
|
|
MAPI information through text only gateways such as SMTP.
|
|
|
|
homepage http://www.fiction.net/blong/programs/#tnef2txt
|
|
master_sites http://www.fiction.net/blong/programs/tnef2txt/
|
|
|
|
checksums md5 a32a9fe1d558f076c2b0d24b742661f6
|
|
|
|
patchfiles patch-Makefile
|
|
|
|
use_configure no
|
|
|
|
variant universal {}
|
|
|
|
set endian_define ""
|
|
if {${os.endian} == "big"} {
|
|
set endian_define " -D __BYTE_ORDER=4321"
|
|
}
|
|
|
|
build.target tnef2txt
|
|
build.args CC="${configure.cc}" \
|
|
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
|
|
PLATFORM="-D LINUX${endian_define}"
|
|
# -D LINUX used because it happens to set the other defines correctly
|
|
# not defining a platform is bad because it assumes big-endian
|
|
|
|
destroot {
|
|
xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
|
|
xinstall -d ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/apptnef.*] ${destroot}${prefix}/share/doc/${name}
|
|
}
|