diff options
Diffstat (limited to 'mail/elm+ME/Makefile')
-rw-r--r-- | mail/elm+ME/Makefile | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/mail/elm+ME/Makefile b/mail/elm+ME/Makefile index 66a1c1014245..1ad33ca930e1 100644 --- a/mail/elm+ME/Makefile +++ b/mail/elm+ME/Makefile @@ -6,13 +6,9 @@ # PORTNAME= elm+ME -PORTVERSION= 2.4.94.0c +PORTVERSION= 2.4.95${PATCHLEVEL} CATEGORIES= mail -.if ${PORTVERSION:M*[a-z]} == "" -DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R}ME+${PORTVERSION:E} -.else -DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R:R}ME+${PORTVERSION:R:E} -.endif +DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R}ME+${PORTVERSION:E:S|${PATCHLEVEL}||} # here are the main repositories. MASTER_SITES= ftp://ftp.ozone.fmi.fi/KEH/ \ @@ -25,18 +21,17 @@ MASTER_SITES+= ftp://ftp.lip6.fr/pub/unix/mail/elm-me/ \ ftp://ftp.eos.hokudai.ac.jp/pub/network/mail/elm-2.4ME+/ \ ftp://ftp.win.ne.jp/pub/network/mail/elm-2.4ME+/ # the following repositories maybe conform to the main repository. -MASTER_SITES+= ftp://ftp.unina.it/pub/Unix/pkgs/network/mail/elm-me+/ \ - ftp://ftp.rge.com/pub/mail/elm/elm-2.4ME+/ \ - ftp://ftp.uni-trier.de/pub/unix/network/mail/elm-me+/ +# MASTER_SITES+= ftp://ftp.unina.it/pub/Unix/pkgs/network/mail/elm-me+/ \ +# ftp://ftp.rge.com/pub/mail/elm/elm-2.4ME+/ \ +# ftp://ftp.uni-trier.de/pub/unix/network/mail/elm-me+/ PATCH_SITES= ${MASTER_SITES} -PATCHFILES= ${DISTNAME:S/+/+PL/}a.patch.gz \ - ${DISTNAME:S/+/+PL/}b.patch.gz \ - ${DISTNAME:S/+/+PL/}c.patch.gz +PATCHFILES= ${DISTNAME:S/+/+PL/}a.patch.gz +PATCHLEVEL= a PATCH_DIST_STRIP= -p1 MAINTAINER= clefevre@citeweb.net -LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv +LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv # not needed since config.sh is generated by scripts/pre-configure. # BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell @@ -66,8 +61,9 @@ PLIST_SUB= SO_REV="${SO_REV}" DOC_SUBDIR="${DOC_SUBDIR}" \ LIB_SUBDIR="${LIB_SUBDIR}" SHLIB_SUBDIR="${SHLIB_SUBDIR}" MAN1= answer.1 checkalias.1 elm.1 elmalias.1 elmcharset.1 \ - elmterminal.1 elmunidata.1 fastmail.1 frm.1 listalias.1 \ - messages.1 newalias.1 newmail.1 printmail.1 readmsg.1 + elmrc-write.1 elmterminal.1 elmunidata.1 fastmail.1 frm.1 \ + listalias.1 messages.1 newalias.1 newmail.1 printmail.1 \ + readmsg.1 MLINKS= frm.1 nfrm.1 newmail.1 wnewmail.1 # Local variables @@ -115,7 +111,7 @@ patch-nls-files: # post-install: install-startup-files install-nls-files \ - install-doc-files install-mime-types \ + install-doc-files install-mime-types install-global-rc-file \ remove-catman-files remove-catman-links install-startup-files: @@ -136,10 +132,24 @@ install-doc-files: install-mime-types: @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \ ${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES}-dist - @if [ ! -f ${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES} ]; then \ - ${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \ - ${PREFIX}/${LIB_SUBDIR}; \ - fi +.if !exists(${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES}) + @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \ + ${PREFIX}/${LIB_SUBDIR} +.endif + +# at installation time, elm already has merged changes to the global +# rc file. so, the only way to generate a -dist rc file is to +# backup the original rc file, then to generate the -dist rc file +# and to restore the backuped rc file. this allow us, at deinstallation +# time, to not delete an existing customized rc file. +install-global-rc-file: + @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc \ + ${PREFIX}/${LIB_SUBDIR}/elm.rc.orig + @${PREFIX}/${LIB_SUBDIR}/elmrc-write -G -I + @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc \ + ${PREFIX}/${LIB_SUBDIR}/elm.rc-dist + @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc.orig \ + ${PREFIX}/${LIB_SUBDIR}/elm.rc remove-catman-files: .for sect in ${MSECS} |