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:
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
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
PORTVERSION= 0.5r1261
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= -devel
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue