1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add gnochm, a CHM file viewer. It is designed to integrate nicely with Gnome. It

uses PyCHM, a Python package that exports the CHMLIB API. Features are:

    * Full-text search support
    * Bookmarks
    * Gnome integration (on-line help, file associations, drag'n'drop from file
      manager, gnome menu entry)
    * Internationalisation support
    * Configurable support for HTTP links
    * Configurable support for external ms-its links

WWW: http://gnochm.sourceforge.net/

PR:		ports/74459
Submitted by:	Radek Kozlowski <radek@raadradd.com>
This commit is contained in:
Pav Lucistnik 2004-12-02 07:32:34 +00:00
parent 25bd261f53
commit 7379be860e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122963
6 changed files with 100 additions and 0 deletions

View File

@ -45,6 +45,7 @@
SUBDIR += gkrellm-reminder2
SUBDIR += glabels
SUBDIR += gmcal
SUBDIR += gnochm
SUBDIR += gnomeblog
SUBDIR += gnomepim
SUBDIR += gnomeutils2

38
deskutils/gnochm/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: gnochm
# Date created: 25 November 2004
# Whom: Radek Kozlowski <radek@raadradd.com>
#
# $FreeBSD$
#
PORTNAME= gnochm
PORTVERSION= 0.9.3
CATEGORIES= deskutils python gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= radek@raadradd.com
COMMENT= A GNOME viewer for CHM files
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
USE_GMAKE= yes
USE_GNOME= gnomehack gnomeprefix intlhack pygnome2
USE_LIBTOOL_VER=15
USE_PYTHON= yes
USE_REINPLACE= yes
USE_X_PREFIX= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
GCONF_SCHEMAS= gnochm.schemas
INSTALLS_OMF= yes
MAN1= gnochm.1
MANCOMPRESSED= no
post-patch:
@${REINPLACE_CMD} -e 's|@APPDATADIR@|@APPDATADIR@/gnome|' ${WRKSRC}/gnochm.py.in
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (gnochm-0.9.3.tar.gz) = 8b5b8c16337e93366dda6667c11821b2
SIZE (gnochm-0.9.3.tar.gz) = 276179

View File

@ -0,0 +1,20 @@
--- data/Makefile.in.orig Thu Dec 2 01:00:48 2004
+++ data/Makefile.in Thu Dec 2 01:02:50 2004
@@ -199,7 +199,7 @@
mime_DATA = gnochm.mime
# Should I use XDG_DATA_DIRS/mime/packages ????
-sharedmimedir = $(datadir)/mime/packages
+sharedmimedir = $(prefix)/share/mime/packages
sharedmime_in_files = gnochm.xml.in
sharedmime_DATA = $(sharedmime_in_files:.xml.in=.xml)
man_MANS = gnochm.1
@@ -543,7 +543,7 @@
install-data-hook:
if test "$(SHAREDMIME_TOOL)" != "no"; then \
- $(SHAREDMIME_TOOL) $(datadir)/mime; \
+ $(SHAREDMIME_TOOL) $(prefix)/share/mime; \
fi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -0,0 +1,12 @@
GnoCHM is a CHM file viewer. It is designed to integrate nicely with Gnome. It
uses PyCHM, a Python package that exports the CHMLIB API. Features are:
* Full-text search support
* Bookmarks
* Gnome integration (on-line help, file associations, drag'n'drop from file
manager, gnome menu entry)
* Internationalisation support
* Configurable support for HTTP links
* Configurable support for external ms-its links
WWW: http://gnochm.sourceforge.net/

View File

@ -0,0 +1,27 @@
bin/gnochm
share/gnome/application-registry/gnochm.applications
share/gnome/applications/gnochm.desktop
share/gnome/gnochm/glade/gnochm.glade
share/gnome/gnochm/glade/prefdialog.glade
share/gnome/help/gnochm/C/gnochm.xml
share/gnome/help/gnochm/C/legal.xml
share/gnome/mime-info/gnochm.keys
share/gnome/mime-info/gnochm.mime
share/gnome/omf/gnochm/gnochm-C.omf
share/gnome/pixmaps/chmfile.png
share/gnome/pixmaps/gnochm.png
share/gnome/pixmaps/gnochm_logo.png
share/locale/de_DE/LC_MESSAGES/gnochm.mo
share/locale/it/LC_MESSAGES/gnochm.mo
share/locale/pt_BR/LC_MESSAGES/gnochm.mo
share/locale/tr_TR/LC_MESSAGES/gnochm.mo
share/locale/zh_CN/LC_MESSAGES/gnochm.mo
share/mime/application/x-chm.xml
share/mime/packages/gnochm.xml
@dirrm share/gnome/omf/gnochm
@dirrm share/gnome/help/gnochm/C
@dirrm share/gnome/help/gnochm
@dirrm share/gnome/gnochm/glade
@dirrm share/gnome/gnochm
@exec update-mime-database %D/share/mime
@unexec update-mime-database %D/share/mime