summaryrefslogtreecommitdiff
path: root/inputmethod/prime/Makefile
blob: 376d3f87d29446c17e70481a5e06baf99d18e3f1 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.7 2010/09/10 06:57:20 taca Exp $
#

DISTNAME=	prime-1.0.0.1
CATEGORIES=	inputmethod
MASTER_SITES=	http://prime.sourceforge.jp/src/

MAINTAINER=	obache@NetBSD.org
HOMEPAGE=	http://taiyaki.org/prime/
COMMENT=	Japanese PRedictive Input Method Editor
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	${RUBY_PKGPREFIX}-prime-dict>=0.8.5:../../inputmethod/prime-dict
DEPENDS+=	${RUBY_PKGPREFIX}-suikyo>=2.0:../../textproc/ruby-suikyo
DEPENDS+=	${RUBY_PKGPREFIX}-progressbar-[0-9]*:../../misc/ruby-progressbar
DEPENDS+=	${RUBY_PKGPREFIX}-sary-[0-9]*:../../textproc/ruby-sary

#
# The same dictonary directory now.
#
#CONFLICTS+=	ruby[1-9][0-9]-prime-[1-9]*
#
# Currently, it seems some encoding problem. 
#
RUBY_VERSION_SUPPORTED= 18

GNU_CONFIGURE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	# none

PKGCONFIG_OVERRIDE+=	prime.pc.in

REPLACE_RUBY_DIRS=	src
REPLACE_RUBY_PAT=	*.src

CONFIGURE_ARGS+=	--with-rubydir=${PREFIX}/${RUBY_VENDORLIB}
CONFIGURE_ARGS+=	--with-prime-configdir=${PKG_SYSCONFDIR}

PKG_SYSCONFSUBDIR=	prime

CONF_FILES+=	${PREFIX}/share/doc/prime/examples/Custom_prime.rb \
		${PKG_SYSCONFDIR}/Custom_prime.rb

MAKE_JOBS_SAFE=	no

.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"