pkgsrc/inputmethod/skk-jisyo-cdb/Makefile
jperkin 8d04ae4456 Remove mk/find-prefix.mk usage from the inputmethod category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:50:57 +00:00

42 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2015/11/25 12:50:58 jperkin Exp $
#
DISTNAME= SKK-JISYO.L.${SKKJISYO_VERS}
PKGNAME= skk-jisyo-cdb-${SKKJISYO_VERS}
CATEGORIES= japanese inputmethod
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=matusita/skk-jisyo/}
EXTRACT_SUFX= .bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://openlab.ring.gr.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1
COMMENT= Dictionary collection for SKK
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}
BUILD_DEPENDS+= tinycdb-[0-9]*:../../databases/tinycdb
USE_LANGUAGES= # empty
SKKJISYO_VERS= 201212
INSTALLATION_DIRS+= ${PREFIX}/share/skk
do-build:
LC_ALL=C ${AWK} '/^[^;]/ { \
s = substr($$0, index($$0, " ") + 1); \
print "+" length($$1) "," length(s) ":" $$1 "->" s; \
} \
END { \
print ""; \
}' \
< ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS} | \
${LOCALBASE}/bin/cdb -c -t - \
${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb
do-install:
${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb \
${DESTDIR}${PREFIX}/share/skk/SKK-JISYO.L.cdb
.include "../../mk/bsd.pkg.mk"