View | Details | Raw Unified | Return to bug 135257
Collapse All | Expand All

(-)mueller-dic/Makefile (-11 / +24 lines)
Lines 7-41 Link Here
7
7
8
PORTNAME=	mueller-dic
8
PORTNAME=	mueller-dic
9
PORTVERSION=	1.2
9
PORTVERSION=	1.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	russian
11
CATEGORIES=	russian
12
MASTER_SITES=	http://mueller-dic.chat.ru/
12
MASTER_SITES=	http://www.dindin.ru/download/ \
13
							http://mueller-dic.chat.ru/
13
DISTFILES=	Mueller7accentGPL.tgz yusupov_mf.tgz
14
DISTFILES=	Mueller7accentGPL.tgz yusupov_mf.tgz
14
DIST_SUBDIR=	${PORTNAME}
15
DIST_SUBDIR=	${PORTNAME}
15
16
16
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	dindin@dindin.ru
17
COMMENT=	Mueller English-Russian dictionary
18
COMMENT=	Mueller English-Russian dictionary
18
19
19
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_ICONV=	yes
22
SUB_FILES=	mueller
20
23
21
WRKSRC=		${WRKDIR}/mf
24
WRKSRC=		${WRKDIR}/mf
22
WRKSRC_DIC=	${WRKDIR}/usr/local/share/dict
25
WRKSRC_DIC=	${WRKDIR}/usr/local/share/dict
23
WRKSRC_DOC=	${WRKDIR}/usr/local/share/mova
26
WRKSRC_DOC=	${WRKDIR}/usr/local/share/mova
24
27
25
pre-install:
28
post-build:
26
	# rebuild dictionary hash
29
# convert dictionary to other charsets
27
	${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.koi -hash
30
	${MV} ${WRKSRC_DIC}/Mueller7accentGPL.koi ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R
31
	iconv -f koi8-r -t cp1251 -c ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R > \
32
			${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 || ${TRUE}
33
	iconv -f koi8-r -t utf-8 -c ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R > \
34
			${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 || ${TRUE}
35
# rebuild dictionary hash
36
	${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R -hash
37
	${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 -hash
38
	${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 -hash
28
39
29
do-install:
40
do-install:
30
	# install program with different name (it conflicts with teTeX)
41
	# install program with different name (it conflicts with teTeX)
31
	${INSTALL_PROGRAM} ${WRKSRC}/mf ${PREFIX}/bin/muellerfind
42
	${INSTALL_PROGRAM} ${WRKSRC}/mf ${PREFIX}/bin/muellerfind
32
	@(${ECHO_CMD} "#!/bin/sh"; ${ECHO_CMD} "${PREFIX}/bin/muellerfind \
43
	${INSTALL_SCRIPT} ${WRKDIR}/mueller ${PREFIX}/bin/
33
		-d ${DATADIR}/Mueller7accentGPL.koi \$$@") >${PREFIX}/bin/mueller
34
	@${CHMOD} ugo+x ${PREFIX}/bin/mueller
35
44
36
	@${MKDIR} ${DATADIR}
45
	@${MKDIR} ${DATADIR}
37
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.koi ${DATADIR}
46
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R ${DATADIR}
38
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.koi.h ${DATADIR}
47
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R.h ${DATADIR}
48
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 ${DATADIR}
49
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251.h ${DATADIR}
50
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 ${DATADIR}
51
	${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8.h ${DATADIR}
39
52
40
.ifndef (NOPORTDOCS)
53
.ifndef (NOPORTDOCS)
41
	@${MKDIR} ${DOCSDIR}
54
	@${MKDIR} ${DOCSDIR}
(-)mueller-dic/pkg-plist (-4 / +8 lines)
Lines 1-7 Link Here
1
bin/mueller
1
bin/mueller
2
bin/muellerfind
2
bin/muellerfind
3
%%DATADIR%%/Mueller7accentGPL.koi
3
%%DOCSDIR%%/Mueller7.txt
4
%%DATADIR%%/Mueller7accentGPL.koi.h
4
%%DATADIR%%/Mueller7accentGPL.ru_RU.CP1251
5
@dirrm %%DATADIR%%
5
%%DATADIR%%/Mueller7accentGPL.ru_RU.CP1251.h
6
%%PORTDOCS%%%%DOCSDIR%%/Mueller7.txt
6
%%DATADIR%%/Mueller7accentGPL.ru_RU.KOI8-R
7
%%DATADIR%%/Mueller7accentGPL.ru_RU.KOI8-R.h
8
%%DATADIR%%/Mueller7accentGPL.ru_RU.UTF-8
9
%%DATADIR%%/Mueller7accentGPL.ru_RU.UTF-8.h
10
@dirrmtry %%DATADIR%%
7
%%PORTDOCS%%@dirrm %%DOCSDIR%%
11
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 135257