openbsd-ports/graphics/comix/Makefile
ajacoutot 973a6fb381 - tweak the way the gtk-update-icon-cache goo is run
gtk-update-icon-cache is part of gtk+2: adding gtk+2 to run_depends just
to update the icon cache (which only gtk apps can use) is overkill to
say the least!
As from now, each time icons are installed under %D/share/icons, we try
to execute gtk-update-icon-cache and if it is not there, we just ignore
the error.
What it means is that if you have gtk+2 installed, then it'll run fine
and your apps will be able to use the cache. Otherwise, it will silently
fails which is fine since it means none of your apps would have been
able to take advantage of the cache anyway.

discussed with jasper@
2008-04-17 08:10:09 +00:00

44 lines
995 B
Makefile

# $OpenBSD: Makefile,v 1.8 2008/04/17 08:10:10 ajacoutot Exp $
COMMENT= gtk2 comic book viewer
DISTNAME= comix-3.6.2
PKGNAME= ${DISTNAME}p5
CATEGORIES= graphics
MAINTAINER= Mathieu Sauve-Frankel <msf@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=comix/}
MODULES= lang/python
PY_FLAVOR= python${MODPY_VERSION}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= :py-Imaging-*-${PY_FLAVOR}:graphics/py-Imaging,${PY_FLAVOR} \
::x11/py-gtk2 \
:desktop-file-utils-*:devel/desktop-file-utils
NO_REGRESS= Yes
post-extract:
${GUNZIP_CMD} ${WRKSRC}/comix.1.gz
do-build:
# defined as empty to override do-build target from python module
do-install:
cd ${WRKSRC} && ${MODPY_BIN} install.py --installdir ${PREFIX} \
--no-mime --no-balloon install
perl -pi -e "s,#!/usr/bin/env python,#!${MODPY_BIN}," \
${PREFIX}/bin/comix
PKG_ARCH= *
.include <bsd.port.mk>