aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/pycodec/Makefile
blob: 06b956affa467c425e86e6248dec79f00e8c1f5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:    ja-pycodec
# Date created:     29 April 2001
# Whom:         Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=   pycodec
PORTVERSION=    1.4.10
CATEGORIES= japanese python converters
MASTER_SITES=   http://www.python.jp/Zope/download/JapaneseCodecs/ \
        http://www.asahi-net.or.jp/~rd6t-kjym/python/JapaneseCodecs/dist/
DISTNAME=   JapaneseCodecs-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org
COMMENT=    Python Unicode codecs for Japanese charsets

USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_REINPLACE=  yes
DOCSDIR=    ${PREFIX}/share/doc/ja-pycodec

post-patch:
    ${REINPLACE_CMD} -e 's,^static,static const,g' \
        ${WRKSRC}/src/_japanese_codecs.h

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.en ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR}
.endif

.include <bsd.port.mk>