1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

- Update to 1.1

- Pass maintainership to submitter

PR:		ports/167475
Submitted by:	Po-Chien Lin <linpc@cs.nctu.edu.tw>
This commit is contained in:
Li-Wen Hsu 2012-05-14 18:00:14 +00:00
parent 2fde53c27d
commit 205c178dea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296591
7 changed files with 93 additions and 35 deletions

View File

@ -6,30 +6,38 @@
#
PORTNAME= pcmanx
PORTVERSION= 0.3.9
PORTVERSION= 1.1
CATEGORIES= chinese net gnome
MASTER_SITES= http://pcmanx-gtk2.googlecode.com/svn/website/release/
MASTER_SITES= http://pcmanx-gtk2.googlecode.com/files/
DISTNAME= ${PORTNAME}-gtk2-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= linpc@cs.nctu.edu.tw
COMMENT= BBS client using GTK+ 2.x
USE_BZIP2= yes
LICENSE= GPLv2
USE_XZ= yes
USE_GNOME= gtk20 intlhack
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS= WGET "enable wget support for download articles" on
OPTIONS= NLS "Use Native Language Support" on \
DEBUG "Build with debugging support" off \
DOCKLET "Docklet / system tray support" on \
NOTIFIER "Popup notifier support" on \
LIBNOTIFY "Popup notifier support by libnotify" off \
NANCY "Nancy bot support" on \
MOUSE "Mouse click and wheel support" on \
EXTERNAL "Eexternal SSH/Telnet support" on \
IPLOOKUP "IP location lookup support" off \
PROXY "Proxy support" off
MAN1= pcmanx.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_WGET)
RUN_DEPENDS+= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
CONFIGURE_ARGS+=--enable-wget
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
@ -40,14 +48,40 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-extract:
@${REINPLACE_CMD} -e 's/wget/fetch/' ${WRKSRC}/po/zh_CN.po \
${WRKSRC}/po/zh_TW.po ${WRKSRC}/src/generalprefpage.cpp \
${WRKSRC}/src/view/telnetview.cpp
@${REINPLACE_CMD} -e 's/wget -O/fetch -o/' ${WRKSRC}/src/mainframe.cpp
@${REINPLACE_CMD} -e 's/Antiidlestr/AntiIdleStr/' \
${WRKSRC}/src/appconfig.cpp
@${REINPLACE_CMD} -e '136 s/, \(.*\)/,1\);/' \
${WRKSRC}/src/view/telnetview.cpp
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif
.if defined(WITHOUT_DOCKLET)
CONFIGURE_ARGS+=--disable-docklet
.endif
.if defined(WITHOUT_NOTIFIER)
CONFIGURE_ARGS+=--disable-notifier
.endif
.if defined(WITH_LIBNOTIFY)
CONFIGURE_ARGS+=--enable-libnotify
.endif
.if defined(WITHOUT_NANCY)
CONFIGURE_ARGS+=--disable-nancy
.endif
.if defined(WITHOUT_MOUSE)
CONFIGURE_ARGS+=--disable-mouse
.endif
.if defined(WITHOUT_EXTERNAL)
CONFIGURE_ARGS+=--disable-external
.endif
.if defined(WITH_IPLOOKUP)
CONFIGURE_ARGS+=--enable-iplookup
.endif
.if defined(WITH_PROXY)
CONFIGURE_ARGS+=--enable-proxy
.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (pcmanx-gtk2-0.3.9.tar.bz2) = 774fb06b48ac773243ce57b87eba4429f4cb05ef1febb87ee489ea6d7c3937b3
SIZE (pcmanx-gtk2-0.3.9.tar.bz2) = 485014
SHA256 (pcmanx-gtk2-1.1.tar.xz) = 377cccdd9e71ffbe434016f7ed93d8b82771f33398ce6804a0bf5926d2a4acd0
SIZE (pcmanx-gtk2-1.1.tar.xz) = 527164

View File

@ -1,10 +0,0 @@
--- src/core/pcmanx_utils.h.orig 2010-10-12 21:10:55.000000000 +0800
+++ src/core/pcmanx_utils.h 2010-10-12 21:11:00.000000000 +0800
@@ -5,7 +5,6 @@
#include <config.h>
#endif
-#include <bits/wordsize.h>
#if __WORDSIZE == 64
typedef unsigned long int word_t;
#else

View File

@ -0,0 +1,11 @@
--- src/core/proxy.c.orig 2011-12-28 19:59:03.000000000 +0800
+++ src/core/proxy.c 2012-05-01 10:42:46.000000000 +0800
@@ -23,6 +23,8 @@
#include <unistd.h>
#include <errno.h>
+#include <sys/socket.h>
+
#include "proxy.h"
#define SOCKS_CMD_CONNECT 0x01

View File

@ -0,0 +1,12 @@
--- src/mainframe.cpp.orig 2012-01-26 22:31:52.000000000 +0800
+++ src/mainframe.cpp 2012-05-01 11:03:06.000000000 +0800
@@ -171,7 +171,9 @@
m_FavoritesMenu = NULL;
m_IsFlashing = false;
m_Mode = NORMAL_MODE;
+#ifdef USE_DOCKLET
m_TrayIcon = NULL;
+#endif
if (desktop != NULL && strcmp("Unity", desktop) == 0) {
m_Unity = true;

View File

@ -0,0 +1,11 @@
--- src/pcmanx_gtk2.cpp.orig 2012-01-26 22:31:52.000000000 +0800
+++ src/pcmanx_gtk2.cpp 2012-05-01 00:36:00.000000000 +0800
@@ -35,6 +35,8 @@
#include <cstring>
#include <ltdl.h>
+#include <libintl.h>
+
#include "mainframe.h"
#include "appconfig.h"
#include "telnetcon.h"

View File

@ -1,9 +1,6 @@
bin/pcmanx
lib/libpcmanx_core.la
lib/libpcmanx_core.so
lib/libpcmanx_core.so.3
share/applications/pcmanx.desktop
share/pixmaps/pcmanx.png
share/pixmaps/pcmanx.svg
%%NLS%%share/locale/zh_CN/LC_MESSAGES/pcmanx.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/pcmanx.mo
%%DATADIR%%/emoticons
@ -18,3 +15,6 @@ share/pixmaps/pcmanx.png
@dirrmtry %%DATADIR%%/nancy_bot
@dirrmtry %%DATADIR%%
@dirrmtry share/applications
@dirrmtry %%JAVAJARDIR%%
@exec mkdir -p %D/%%DATADIR%%/script
@exec mkdir -p %D/%%JAVAJARDIR%%