Skip to content

Commit

Permalink
devel/thonny: Add missing desktop entry and icons
Browse files Browse the repository at this point in the history
Pass maintainership to submitter

PR:		276076
Reported by:	kenrap@kennethraplee.com
  • Loading branch information
wenheping committed Jan 14, 2024
1 parent 4638825 commit d5e652f
Show file tree
Hide file tree
Showing 2 changed files with 1,324 additions and 2 deletions.
17 changes: 15 additions & 2 deletions devel/thonny/Makefile
Expand Up @@ -24,7 +24,20 @@ RUN_DEPENDS= pylint:devel/pylint@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pip>=0:devel/py-pip@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist distutils
USES= python desktop-file-utils
USE_PYTHON= distutils

ICON_SIZES= 16 22 32 48 64 128 192 256

post-patch:
@${SED} -i '' -e "s|Exec=/usr/bin/|Exec=|" ${WRKSRC}/packaging/linux/*.desktop

post-install:
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/packaging/linux/*.desktop ${STAGEDIR}${PREFIX}/share/applications/
.for sz in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps
${INSTALL_DATA} ${WRKSRC}/packaging/icons/thonny-${sz}x${sz}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps/thonny.png
.endfor

.include <bsd.port.mk>

0 comments on commit d5e652f

Please sign in to comment.