Editing the .desktop file is still necessary in the case of

graphics/xaralx-devel port because the icon and the executable are
installed under xaralx-devel.png and xaralx-devel respectively to
make it possible to have both xaralx and xaralx-devel installed.
This commit is contained in:
Vasil Dimov 2006-06-09 11:05:39 +00:00
parent 59d8f8162b
commit b7d7480701
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164897
2 changed files with 13 additions and 1 deletions

View file

@ -6,7 +6,7 @@
#
PORTVERSION= 0.5r1261
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -devel
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2

View file

@ -79,6 +79,18 @@ BROKEN= does not configure due to the lack of CDraw libraries for ${ARCH}
post-patch:
${REINPLACE_CMD} -E -e 's|-I[^[:space:]]*/wxOil[[:space:]]||g' \
${WRKSRC}/Makefile.am
${REINPLACE_CMD} -E \
-e 's/^Name=Xara LX$$/Name=Xara LX ${PORTVERSION}/' \
${WRKSRC}/xaralx.desktop
.else
post-patch:
${REINPLACE_CMD} -E \
-e 's/^Name=Xara LX$$/Name=Xara LX ${PORTVERSION}/' \
-e 's/^Icon=xaralx.png$$/Icon=xaralx${PKGNAMESUFFIX}.png/' \
-e 's/^FilePattern=xaralx;$$/FilePattern=xaralx${PKGNAMESUFFIX}/' \
-e 's/^Exec=xaralx %F$$/Exec=xaralx${PKGNAMESUFFIX} %F/' \
-e 's/^TryExec=xaralx$$/TryExec=xaralx${PKGNAMESUFFIX}/' \
${WRKSRC}/xaralx.desktop
.endif
pre-configure: