mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Unbreak the port by making it use cdb-0.55. The breakage was due to
the update of database/cdb to 0.70. PR: ports/18092 Submitted by: MAINTAINER - Fix wrong work directory specifications.
This commit is contained in:
parent
a8174c980d
commit
0717c2e112
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27982
@ -9,9 +9,13 @@ PORTNAME= dbskkd-cdb
|
||||
PORTVERSION= 1.01
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= http://www.k2r.org/kenji/software/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
||||
${CDB_DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= matusita@jp.Freebsd.ORG
|
||||
|
||||
CDB_DISTNAME= cdb-0.55
|
||||
|
||||
SKKJISYO_SIZE?= L
|
||||
SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE}
|
||||
DOCS= Release-Notes.English Release-Notes.Japanese LICENSE
|
||||
@ -21,12 +25,12 @@ PLIST_SUB= JISYONAME=${SKKJISYO}
|
||||
|
||||
post-patch:
|
||||
.for docs in ${DOCS}
|
||||
@${SED} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%JISYONAME%%!${SKKJISYO}!g" < ${WRKSRC}/${docs} > ${WRKSRC}/.tmp
|
||||
@${MV} -f ${WRKSRC}/.tmp ${WRKSRC}/${docs}
|
||||
${SED} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%JISYONAME%%!${SKKJISYO}!g" < ${WRKSRC}/${docs} > ${WRKSRC}/.tmp
|
||||
${MV} -f ${WRKSRC}/.tmp ${WRKSRC}/${docs}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/share/dbskkd-cdb ${PREFIX}/share/doc/dbskkd-cdb
|
||||
${MKDIR} ${PREFIX}/share/dbskkd-cdb ${PREFIX}/share/doc/dbskkd-cdb
|
||||
${INSTALL_DATA} ${WRKSRC}/${SKKJISYO}.cdb ${PREFIX}/share/dbskkd-cdb
|
||||
.for docs in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${docs} ${PREFIX}/share/doc/dbskkd-cdb
|
||||
@ -37,24 +41,17 @@ post-install:
|
||||
.if defined(WITH_JISYO) || (exists(${LOCALBASE}/share/skk/${SKKJISYO}) \
|
||||
&& !defined(WITHOUT_JISYO))
|
||||
pre-build::
|
||||
@${CP} ${LOCALBASE}/share/skk/${SKKJISYO} ${WRKSRC}
|
||||
${CP} ${LOCALBASE}/share/skk/${SKKJISYO} ${WRKSRC}
|
||||
.else
|
||||
BUILD_DEPENDS+= /nonexistent:${PORTSDIR}/japanese/skk-jisyo:extract
|
||||
BUILD_DEPENDS+= /nonexistent:${.CURDIR}/../../japanese/skk-jisyo:extract
|
||||
pre-build::
|
||||
@${CP} ${PORTSDIR}/japanese/skk-jisyo/work/*/jisyo/${SKKJISYO} ${WRKSRC}
|
||||
${CP} ${WRKDIR}/../../../japanese/skk-jisyo/work/*/jisyo/${SKKJISYO} ${WRKSRC}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CDB) || (exists(${LOCALBASE}/lib/libcdb.a) && \
|
||||
exists(${LOCALBASE}/bin/cdbmake) && !defined(WITHOUT_CDB))
|
||||
pre-build::
|
||||
@${CP} ${LOCALBASE}/lib/libcdb.a ${LOCALBASE}/bin/cdbmake ${WRKSRC}
|
||||
@(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh)
|
||||
.else
|
||||
BUILD_DEPENDS+= /nonexistent:${PORTSDIR}/databases/cdb:build
|
||||
pre-build::
|
||||
@${CP} ${PORTSDIR}/databases/cdb/work/*/libcdb.a ${WRKSRC}
|
||||
@${CP} ${PORTSDIR}/databases/cdb/work/*/cdbmake ${WRKSRC}
|
||||
@(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh)
|
||||
.endif
|
||||
(cd ${WRKDIR}/${CDB_DISTNAME}; make it)
|
||||
${CP} ${WRKDIR}/${CDB_DISTNAME}/libcdb.a ${WRKSRC}
|
||||
${CP} ${WRKDIR}/${CDB_DISTNAME}/cdbmake ${WRKSRC}
|
||||
(cd ${WRKSRC}; SKKJISYO=${SKKJISYO} ./makeskkcdb.sh)
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1 +1,2 @@
|
||||
MD5 (dbskkd-cdb-1.01.tar.gz) = 866bbf49a4c264c0efd6e5e53934bd55
|
||||
MD5 (cdb-0.55.tar.gz) = bc6f32de8df81c699d5d76431ce76e79
|
||||
|
Loading…
Reference in New Issue
Block a user