aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-05-28 23:49:06 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-05-28 23:49:06 +0000
commit7675c53ff5af07e93692f767708e06c028f82a62 (patch)
tree3b0cdffcc66e62162b79d77506b849bed3a9be3f
parent043ce69d399d68396ac46a77b7eddf64631ccb86 (diff)
- Update to 1.0.5
PR: 135029 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=234731
-rw-r--r--deskutils/chmsee/Makefile37
-rw-r--r--deskutils/chmsee/distinfo6
-rw-r--r--deskutils/chmsee/files/patch-src__CMakeLists.txt10
-rw-r--r--deskutils/chmsee/pkg-plist5
4 files changed, 47 insertions, 11 deletions
diff --git a/deskutils/chmsee/Makefile b/deskutils/chmsee/Makefile
index 83e00020b58a..a18ce2f7c7d2 100644
--- a/deskutils/chmsee/Makefile
+++ b/deskutils/chmsee/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= chmsee
-PORTVERSION= 1.0.4
+PORTVERSION= 1.0.5
CATEGORIES= deskutils gnome
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
@@ -16,17 +16,38 @@ COMMENT= A viewer for Microsoft Help "CHM" files
LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib \
gcrypt.16:${PORTSDIR}/security/libgcrypt
-USE_GNOME= gnomehack gnomehier libglade2
-USE_GECKO= firefox seamonkey xulrunner
+USE_GNOME= gnomehier libglade2
+USE_GECKO= firefox libxul seamonkey xulrunner mozilla
USE_GETTEXT= yes
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --with-gecko=${GECKO}
+USE_CMAKE= yes
+CMAKE_USE_PTHREAD= yes
+CMAKE_ARGS= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE
MAN1= chmsee.1
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
+
+.if defined(GECKO) && ${GECKO:Mlibxul}!=""
+GTKMOZEMBED_LIB="${GECKO}-embedding-unstable nspr"
+.else
+GTKMOZEMBED_LIB="${GECKO}-gtkmozembed"
+CFLAGS+= -I${LOCALBASE}/include/${GECKO}/commandhandler \
+ -I${LOCALBASE}/include/${GECKO}/locale \
+ -DGECKO_LIB_ROOT="\\\"\"${LOCALBASE}/lib/${GECKO}\"\\\""
+.endif
+
+post-extract:
+ @(cd ${WRKSRC}/data; ${CP} -f chmsee.desktop.in chmsee.desktop.skel)
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/REQUIRED/s|libxul-embedding-unstable|${GTKMOZEMBED_LIB}|g ; \
+ /FLAVOUR/s|libxul|${GECKO}|g' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e \
+ 's|.desktop.in|.desktop.skel|g' ${WRKSRC}/data/CMakeLists.txt
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/doc/chmsee.1 ${MANPREFIX}/man/man1
+
.include <bsd.port.post.mk>
diff --git a/deskutils/chmsee/distinfo b/deskutils/chmsee/distinfo
index cd6a195a8359..e5a301de824e 100644
--- a/deskutils/chmsee/distinfo
+++ b/deskutils/chmsee/distinfo
@@ -1,3 +1,3 @@
-MD5 (chmsee-1.0.4.tar.gz) = 43d40e0db8ed447ace76ca58c7cdb51e
-SHA256 (chmsee-1.0.4.tar.gz) = ab21979fb3f503e9d00db5037dd4fbea8cacad3f455df253ea5fe77c7d3243ed
-SIZE (chmsee-1.0.4.tar.gz) = 260449
+MD5 (chmsee-1.0.5.tar.gz) = 8ba5cfa8549a5e5275cc52970c951989
+SHA256 (chmsee-1.0.5.tar.gz) = e179b0d3910aa453432160f4b0f4c5eb5ce0a8d1946b6a72d90dfb613e28508f
+SIZE (chmsee-1.0.5.tar.gz) = 427885
diff --git a/deskutils/chmsee/files/patch-src__CMakeLists.txt b/deskutils/chmsee/files/patch-src__CMakeLists.txt
new file mode 100644
index 000000000000..f3e85c432f79
--- /dev/null
+++ b/deskutils/chmsee/files/patch-src__CMakeLists.txt
@@ -0,0 +1,10 @@
+--- src/CMakeLists.txt.orig 2009-05-17 15:48:23.000000000 +0900
++++ src/CMakeLists.txt 2009-05-19 01:37:10.000000000 +0900
+@@ -49,6 +49,7 @@
+ ${CHMSEE_LIBRARIES}
+ chm
+ gcrypt
++ md
+ )
+
+ add_executable(chmsee main.cpp)
diff --git a/deskutils/chmsee/pkg-plist b/deskutils/chmsee/pkg-plist
index d891bea36ad7..31b79b1e543b 100644
--- a/deskutils/chmsee/pkg-plist
+++ b/deskutils/chmsee/pkg-plist
@@ -10,15 +10,20 @@ share/applications/chmsee.desktop
%%DATADIR%%/hide-pane.png
%%DATADIR%%/show-pane.png
share/locale/bn/LC_MESSAGES/chmsee.mo
+share/locale/cs/LC_MESSAGES/chmsee.mo
+share/locale/el/LC_MESSAGES/chmsee.mo
share/locale/en_GB/LC_MESSAGES/chmsee.mo
share/locale/es/LC_MESSAGES/chmsee.mo
share/locale/fr/LC_MESSAGES/chmsee.mo
share/locale/he/LC_MESSAGES/chmsee.mo
share/locale/it/LC_MESSAGES/chmsee.mo
share/locale/nb/LC_MESSAGES/chmsee.mo
+share/locale/pt/LC_MESSAGES/chmsee.mo
+share/locale/pt_BR/LC_MESSAGES/chmsee.mo
share/locale/ru/LC_MESSAGES/chmsee.mo
share/locale/sv/LC_MESSAGES/chmsee.mo
share/locale/sw/LC_MESSAGES/chmsee.mo
+share/locale/uk/LC_MESSAGES/chmsee.mo
share/locale/zh_CN/LC_MESSAGES/chmsee.mo
share/mime-info/chmsee.keys
share/mime-info/chmsee.mime