1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Install into PREFIX, not LOCALBASE
- Fix pkg-message displaying

PR:		187344
Submitted by:	amdmi3
Approved by:	maintainer timeout, portmgr (blanket)
This commit is contained in:
Dmitry Marakasov 2014-03-29 14:05:38 +00:00
parent 6cb749803b
commit 8c71397ae9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349514
2 changed files with 8 additions and 10 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= cyr-rfx-${CYR_RFX_ENCODING}
PORTVERSION= 1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-fonts ukrainian russian
MASTER_SITES= ftp://ftp.ptc.spbu.ru/mirror/ftp.inp.nsk.su/%SUBDIR%/ \
ftp://ftp.inp.nsk.su/%SUBDIR%/
@ -26,12 +26,10 @@ CYR_RFX_ENCODING?= koi8-o
WRKSRC= ${WRKDIR}/${CYR_RFX_ENCODING}
MAKEFILE= ${FILESDIR}/Makefile.bdf2pcf
INST_DIR= "lib/X11/fonts/${PORTNAME}"
MAKE_ENV+= INST_DIR="${LOCALBASE}/${INST_DIR}" MKDIR="${MKDIR}"
PLIST_SUB+= INST_DIR="${INST_DIR}"
MAKE_ENV+= INST_DIR="${STAGEDIR}${PREFIX}/${INST_DIR}" MKDIR="${MKDIR}"
PLIST_SUB= INST_DIR="${INST_DIR}"
NO_STAGE= yes
post-install:
@${SED} -e 's,/usr/X11R6,${LOCALBASE},g' -e \
's,koi8-o,${CYR_RFX_ENCODING},g' < ${PKGMESSAGE}
SUB_LIST= CYR_RFX_ENCODING="${CYR_RFX_ENCODING}"
SUB_FILES= pkg-message
.include <bsd.port.mk>

View File

@ -1,10 +1,10 @@
This port provides Cyrillic replacements for most of the standard
/usr/X11R6/lib/X11/fonts/misc
%%PREFIX%%/lib/X11/fonts/misc
and
/usr/X11R6/lib/X11/fonts/75dpi
%%PREFIX%%/lib/X11/fonts/75dpi
fonts.
You may want to make sure, the
/usr/X11R6/lib/X11/fonts/cyr-rfx-koi8-o
%%PREFIX%%/lib/X11/fonts/cyr-rfx-%%CYR_RFX_ENCODING%%
is listed in your fontpath before those two paths.