summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/comix/Makefile79
-rw-r--r--graphics/comix/distinfo3
-rw-r--r--graphics/comix/pkg-descr5
-rw-r--r--graphics/comix/pkg-plist52
4 files changed, 139 insertions, 0 deletions
diff --git a/graphics/comix/Makefile b/graphics/comix/Makefile
new file mode 100644
index 000000000..ce93522f5
--- /dev/null
+++ b/graphics/comix/Makefile
@@ -0,0 +1,79 @@
+# New ports collection makefile for: comix
+# Date created: 26 November 2005
+# Whom: Mezz <mezz@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= comix
+PORTVERSION= 3.4
+PORTREVISION= 1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= mezz@FreeBSD.org
+COMMENT= A GTK2 comic book viewer for .cbz, .cbr and .cbt files
+
+RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar \
+ ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+
+NO_BUILD= yes
+USE_XLIB= yes
+USE_GNOME= desktopfileutils pygtk2
+WANT_GNOME= yes
+USE_PYTHON= yes
+USE_GETTEXT= yes
+INSTALLS_ICONS= yes
+
+DOCS= COPYING ChangeLog README
+MAN1= comix.1
+
+.include <bsd.port.pre.mk>
+
+.if (${HAVE_GNOME:Mnautilus2}!="" || defined(WITH_THUMBNAILS)) && !defined(WITHOUT_THUMBNAILS)
+USE_GNOME+= gnomehier gconf2
+MAN1+= comicthumb.1
+GCONF_SCHEMAS= comicbook.schemas
+PLIST_SUB+= THUMBNAILS:=""
+THUMBNAILS_ENABLED=yes
+.else
+PLIST_SUB+= THUMBNAILS:="@comment "
+.endif
+
+post-extract:
+ @${FIND} ${WRKSRC} -name \*.gz | ${XARGS} ${GUNZIP_CMD}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|share/man|man|g ; s|1.gz|1|g ; \
+ s|/usr/share/mime|${PREFIX}/share/mime|g ; \
+ s|'/usr'|'${PREFIX}'|g" \
+ ${WRKSRC}/install.py
+ @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
+ ${WRKSRC}/comix
+
+do-install:
+.if defined(THUMBNAILS_ENABLED)
+ @${MKDIR} ${PREFIX}/share/mime/packages
+ @(cd ${WRKSRC} ; \
+ ${PYTHON_CMD} install.py install --installdir ${PREFIX})
+ @${MKDIR} ${PREFIX}/etc/gconf/schemas
+ @${INSTALL_DATA} ${WRKSRC}/mime/comicbook.schemas \
+ ${PREFIX}/etc/gconf/schemas/
+.else
+ @(cd ${WRKSRC} ; \
+ ${PYTHON_CMD} install.py install \
+ --installdir ${PREFIX} --no-mime)
+.endif
+
+post-install:
+ @-update-desktop-database
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/comix/distinfo b/graphics/comix/distinfo
new file mode 100644
index 000000000..da94a2826
--- /dev/null
+++ b/graphics/comix/distinfo
@@ -0,0 +1,3 @@
+MD5 (comix-3.4.tar.gz) = 88b431436570dbea690b7f2280b80f43
+SHA256 (comix-3.4.tar.gz) = a54a672d6593ff709ad9a1b8cf20e9a9af8141f0036de5049b4348b6e363431a
+SIZE (comix-3.4.tar.gz) = 296877
diff --git a/graphics/comix/pkg-descr b/graphics/comix/pkg-descr
new file mode 100644
index 000000000..72951b6a3
--- /dev/null
+++ b/graphics/comix/pkg-descr
@@ -0,0 +1,5 @@
+Comix is an image viewer specifically designed to handle comic books. It reads
+ZIP, RAR and tar archives (also gzip or bzip2 compressed), as well as plain
+image files. It has a simple and user-friendly GUI using PyGTK.
+
+WWW: http://comix.sourceforge.net/
diff --git a/graphics/comix/pkg-plist b/graphics/comix/pkg-plist
new file mode 100644
index 000000000..396d0f358
--- /dev/null
+++ b/graphics/comix/pkg-plist
@@ -0,0 +1,52 @@
+%%THUMBNAILS:%%bin/comicthumb
+bin/comix
+share/applications/comix.desktop
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+share/icons/hicolor/48x48/apps/comix.png
+share/icons/hicolor/scalable/apps/comix.svg
+share/locale/ca/LC_MESSAGES/comix.mo
+share/locale/de/LC_MESSAGES/comix.mo
+share/locale/el/LC_MESSAGES/comix.mo
+share/locale/es/LC_MESSAGES/comix.mo
+share/locale/fr/LC_MESSAGES/comix.mo
+share/locale/it/LC_MESSAGES/comix.mo
+share/locale/nl/LC_MESSAGES/comix.mo
+share/locale/pl/LC_MESSAGES/comix.mo
+share/locale/pt_BR/LC_MESSAGES/comix.mo
+share/locale/sv/LC_MESSAGES/comix.mo
+share/locale/zh_CN/LC_MESSAGES/comix.mo
+share/locale/zh_TW/LC_MESSAGES/comix.mo
+%%THUMBNAILS:%%share/mime/application/x-cbr.xml
+%%THUMBNAILS:%%share/mime/application/x-cbt.xml
+%%THUMBNAILS:%%share/mime/application/x-cbz.xml
+%%THUMBNAILS:%%share/mime/packages/comix.xml
+share/pixmaps/comix.png
+share/pixmaps/comix/cbr.png
+share/pixmaps/comix/cbt.png
+share/pixmaps/comix/cbz.png
+share/pixmaps/comix/double_page.png
+share/pixmaps/comix/fitheight.png
+share/pixmaps/comix/fitnone.png
+share/pixmaps/comix/fitscreen.png
+share/pixmaps/comix/fitwidth.png
+share/pixmaps/comix/flip-horizontal.png
+share/pixmaps/comix/flip-vertical.png
+share/pixmaps/comix/lens.png
+share/pixmaps/comix/library.png
+share/pixmaps/comix/library_add.png
+share/pixmaps/comix/manga.png
+share/pixmaps/comix/rotate-180.png
+share/pixmaps/comix/rotate-270-jpeg.png
+share/pixmaps/comix/rotate-270.png
+share/pixmaps/comix/rotate-90-jpeg.png
+share/pixmaps/comix/rotate-90.png
+share/pixmaps/comix/slideshow.png
+@dirrm share/pixmaps/comix
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry share/applications
+%%THUMBNAILS:%%@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+%%THUMBNAILS:%%@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true