diff options
author | Akinori Hattori <hattya@gentoo.org> | 2011-08-23 12:50:39 +0000 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2011-08-23 12:50:39 +0000 |
commit | 24a10e5553412e6ec3c8d53da1e9aab828730667 (patch) | |
tree | 04afd2a66a277ca8bb1f865ee8a26f7ddd29437e /mail-filter/scmail | |
parent | update to EAPI 4. (diff) | |
download | gentoo-2-24a10e5553412e6ec3c8d53da1e9aab828730667.tar.gz gentoo-2-24a10e5553412e6ec3c8d53da1e9aab828730667.tar.bz2 gentoo-2-24a10e5553412e6ec3c8d53da1e9aab828730667.zip |
update to EAPI 4.
(Portage version: 2.1.10.3/cvs/Linux i686)
Diffstat (limited to 'mail-filter/scmail')
-rw-r--r-- | mail-filter/scmail/ChangeLog | 8 | ||||
-rw-r--r-- | mail-filter/scmail/files/scmail-doc-encoding.diff | 28 | ||||
-rw-r--r-- | mail-filter/scmail/scmail-1.3.ebuild | 36 |
3 files changed, 48 insertions, 24 deletions
diff --git a/mail-filter/scmail/ChangeLog b/mail-filter/scmail/ChangeLog index 6ed7728e08fd..b963aa095f29 100644 --- a/mail-filter/scmail/ChangeLog +++ b/mail-filter/scmail/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for mail-filter/scmail -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/scmail/ChangeLog,v 1.10 2010/04/11 10:08:49 hattya Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/scmail/ChangeLog,v 1.11 2011/08/23 12:50:39 hattya Exp $ + + 23 Aug 2011; Akinori Hattori <hattya@gentoo.org> scmail-1.3.ebuild, + +files/scmail-doc-encoding.diff: + update to EAPI 4. 11 Apr 2010; Akinori Hattori <hattya@gentoo.org> +files/scmail-gauche-0.9.diff, scmail-1.3.ebuild: diff --git a/mail-filter/scmail/files/scmail-doc-encoding.diff b/mail-filter/scmail/files/scmail-doc-encoding.diff new file mode 100644 index 000000000000..5ed00a62d02d --- /dev/null +++ b/mail-filter/scmail/files/scmail-doc-encoding.diff @@ -0,0 +1,28 @@ +--- scmail-1.3.orig/doc/embed.scm ++++ scmail-1.3/doc/embed.scm +@@ -1,3 +1,4 @@ ++(use gauche.charconv) + (use gauche.regexp) + (define (escape str) + (set! str (regexp-replace-all #/&/ str "&")) +@@ -15,12 +16,18 @@ + (define (main args) + (call-with-input-file (cadr args) + (lambda (in) +- (let* ((content (port->string in)) ++ (let* ((content (port->string (open-input-conversion-port in "*jp"))) + (content (regexp-replace-all #/#\{(.*?)\}/ content + (lambda (m) + (string-append + "<pre>\n" + (read-file-and-escape (rxmatch-substring m 1)) +- "</pre>\n"))))) ++ "</pre>\n")))) ++ (content (regexp-replace #/(encoding=").*?(")/ content ++ (lambda (m) ++ (string-append ++ (rxmatch-substring m 1) ++ (ces-guess-from-string content "*jp") ++ (rxmatch-substring m 2)))))) + (display content)))) + 0) diff --git a/mail-filter/scmail/scmail-1.3.ebuild b/mail-filter/scmail/scmail-1.3.ebuild index ecd4f7362c1f..d3ab8c0fb1e5 100644 --- a/mail-filter/scmail/scmail-1.3.ebuild +++ b/mail-filter/scmail/scmail-1.3.ebuild @@ -1,43 +1,35 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/scmail/scmail-1.3.ebuild,v 1.6 2010/04/11 10:08:49 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/scmail/scmail-1.3.ebuild,v 1.7 2011/08/23 12:50:39 hattya Exp $ -EAPI="2" +EAPI="4" inherit eutils fixheadtails -IUSE="" - -HOMEPAGE="http://0xcc.net/scmail/" DESCRIPTION="a mail filter written in Scheme" +HOMEPAGE="http://0xcc.net/scmail/" SRC_URI="http://0xcc.net/scmail/${P}.tar.gz" LICENSE="BSD" -KEYWORDS="x86 ~ppc" SLOT="0" +KEYWORDS="x86 ~ppc" +IUSE="" -DEPEND="dev-scheme/gauche" +RDEPEND="dev-scheme/gauche" +DEPEND="${RDEPEND}" src_prepare() { - - epatch "${FILESDIR}"/${PN}-gauche-0.9.diff - + epatch "${FILESDIR}"/${PN}-*.diff ht_fix_file tests/scmail-commands - # replace make -> $(MAKE) - sed -i "s/make\( \|$\)/\$(MAKE)\1/g" Makefile || die - + sed -i "s/make\( \|$\)/\$(MAKE)\1/g" Makefile } src_install() { - emake \ - PREFIX="${D}/usr" \ - SITELIBDIR="${D}$(gauche-config --sitelibdir)" \ - DATADIR="${D}/usr/share/doc/${P}" \ - install \ - || die - + PREFIX="${ED}/usr" \ + SITELIBDIR="${ED}$(gauche-config --sitelibdir)" \ + DATADIR="${ED}/usr/share/doc/${P}" \ + install dohtml doc/*.html - } |