- convert to tk.port.mk and bump; fixes pkgspec
- add license marker
This commit is contained in:
parent
ace5ba2b6d
commit
6ac90cdc25
@ -1,14 +1,16 @@
|
||||
# $OpenBSD: Makefile,v 1.27 2007/09/16 00:17:04 merdely Exp $
|
||||
# $OpenBSD: Makefile,v 1.28 2009/03/13 15:17:02 sthen Exp $
|
||||
|
||||
COMMENT= Tcl/Tk interface to the MH mail system
|
||||
|
||||
DISTNAME= exmh-2.7.2
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= mail
|
||||
|
||||
HOMEPAGE= http://www.beedub.com/exmh/
|
||||
|
||||
MAINTAINER= Michael Paddon <michael@paddon.org>
|
||||
|
||||
# custom BSD-like
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
@ -17,11 +19,15 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
MASTER_SITES= ftp://ftp.funet.fi/pub/languages/tcl/tcl/exmh/ \
|
||||
ftp://ftp.tcl.tk/pub/tcl/exmh/
|
||||
|
||||
BUILD_DEPENDS= :tcl-8.4.*:lang/tcl/8.4
|
||||
MODULES= x11/tk
|
||||
# XXX broken fonts with 8.5
|
||||
MODTCL_VERSION= 8.4
|
||||
MODTK_VERSION= 8.4
|
||||
BUILD_DEPENDS= ${MODTCL_RUN_DEPENDS}
|
||||
RUN_DEPENDS= :expect-*:lang/expect\
|
||||
:nmh-*:mail/nmh\
|
||||
:metamail-*:mail/metamail\
|
||||
:tk-8.4.*:x11/tk/8.4
|
||||
${MODTK_RUN_DEPENDS}
|
||||
USE_X11= Yes
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
@ -30,6 +36,7 @@ PKG_ARCH= *
|
||||
do-configure:
|
||||
@cd ${WRKDIST} && LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} \
|
||||
WRKSRC=${WRKSRC} WRKBUILD=${WRKBUILD} \
|
||||
MODTCL_BIN=${MODTCL_BIN} MODTK_BIN=${MODTK_BIN} \
|
||||
perl ${FILESDIR}/configure
|
||||
|
||||
do-install:
|
||||
@ -43,7 +50,7 @@ do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/exmh
|
||||
cp -r ${WRKSRC}/lib/. ${PREFIX}/share/exmh
|
||||
cd ${PREFIX}/share && echo 'auto_mkindex exmh'\
|
||||
| ${LOCALBASE}/bin/tclsh8.4
|
||||
| ${MODTCL_BIN}
|
||||
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/exmh
|
||||
find ${PREFIX}/share/exmh -type d -print0 | xargs -0 chmod ${DIRMODE}
|
||||
find ${PREFIX}/share/exmh -type f -print0 | xargs -0 chmod ${SHAREMODE}
|
||||
|
8
mail/exmh2/files/configure
vendored
8
mail/exmh2/files/configure
vendored
@ -12,10 +12,12 @@ my $domain = "";
|
||||
|
||||
my $prefix = exists $ENV{"PREFIX"} ? $ENV{"PREFIX"} : "/usr/local";
|
||||
my $localbase = exists $ENV{"LOCALBASE"} ? $ENV{"LOCALBASE"} : "/usr/local";
|
||||
my $modtcl_bin = exists $ENV{"MODTCL_BIN"} ? $ENV{"MODTCL_BIN"} : "$localbase/bin/tclsh.4";
|
||||
my $modtk_bin = exists $ENV{"MODTK_BIN"} ? $ENV{"MODTK_BIN"} : "$localbase/bin/wish8.4";
|
||||
my $config = "
|
||||
# Saved state from exmh.install
|
||||
# Mon Mar 14 10:59:18 MST 2005
|
||||
set wish $localbase/bin/wish8.4
|
||||
set wish $modtk_bin
|
||||
set exmh(version) {version 2.7.2 01/07/2005}
|
||||
set exmh(name) exmh
|
||||
set exmh(maintainer) welch\@acm.org
|
||||
@ -60,8 +62,8 @@ while (my $name = $dir->read ()){
|
||||
|
||||
if (my $line = $in->getline ()){
|
||||
$line =~ s|^#!expect|#!$localbase/bin/expect|;
|
||||
$line =~ s|^#!tclsh|#!$localbase/bin/tclsh8.4|;
|
||||
$line =~ s|^#!wish|#!$localbase/bin/wish8.4|;
|
||||
$line =~ s|^#!tclsh|#!$modtcl_bin|;
|
||||
$line =~ s|^#!wish|#!$modtk_bin|;
|
||||
$out->print ($line) or die ("$dst: $!\n");
|
||||
|
||||
while ($line = $in->getline ()){
|
||||
|
Loading…
Reference in New Issue
Block a user