[26672] trunk/dports/net/nzbget

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 2 11:35:10 PDT 2007


Revision: 26672
          http://trac.macosforge.org/projects/macports/changeset/26672
Author:   mgrimes at macports.org
Date:     2007-07-02 11:35:10 -0700 (Mon, 02 Jul 2007)

Log Message:
-----------
Update to 0.2.3 and add UNIX03 support.

Modified Paths:
--------------
    trunk/dports/net/nzbget/Portfile
    trunk/dports/net/nzbget/files/patch-Coordinator.cpp

Added Paths:
-----------
    trunk/dports/net/nzbget/files/patch-NZBQueue.h

Modified: trunk/dports/net/nzbget/Portfile
===================================================================
--- trunk/dports/net/nzbget/Portfile	2007-07-02 18:32:49 UTC (rev 26671)
+++ trunk/dports/net/nzbget/Portfile	2007-07-02 18:35:10 UTC (rev 26672)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name             nzbget
-version          0.2.0
+version          0.2.3
 categories       net
 maintainers      nomaintainer at macports.org
 description      binary newsgrabber
@@ -12,13 +12,18 @@
 homepage         http://sourceforge.net/projects/nzbget/
 platforms        darwin
 master_sites     sourceforge
-patchfiles       patch-Coordinator.cpp patch-NCursesFrontend.cpp patch-NZBQueue.cpp patch-NZBQueueCoordinator.cpp patch-nzbget.cpp
-checksums        md5 4e51fb8461b651bf14b1b3f52003a43e
+patchfiles       patch-Coordinator.cpp patch-NZBQueue.h patch-NCursesFrontend.cpp \
+                 patch-NZBQueue.cpp patch-NZBQueueCoordinator.cpp patch-nzbget.cpp
+checksums        md5 25554537c7641bd36f573a5f7c89b449
 
 depends_lib      port:libxml2
 
 configure.args   --with-libxml2-includes=${prefix}/include/libxml2
 
+platform darwin 9 {
+    configure.cppflags-append       -D__DARWIN_UNIX03
+}
+
 destroot {
 	xinstall ${worksrcpath}/nzbget ${destroot}${prefix}/bin/nzbget
 

Modified: trunk/dports/net/nzbget/files/patch-Coordinator.cpp
===================================================================
--- trunk/dports/net/nzbget/files/patch-Coordinator.cpp	2007-07-02 18:32:49 UTC (rev 26671)
+++ trunk/dports/net/nzbget/files/patch-Coordinator.cpp	2007-07-02 18:35:10 UTC (rev 26672)
@@ -1,5 +1,5 @@
---- Coordinator.cpp~	Wed Feb 23 09:05:23 2005
-+++ Coordinator.cpp	Fri Apr 15 23:10:46 2005
+--- Coordinator.cpp.orig	2007-07-02 00:56:11.000000000 -0700
++++ Coordinator.cpp	2007-07-02 02:01:54.000000000 -0700
 @@ -28,6 +28,7 @@
  #endif
  
@@ -8,3 +8,24 @@
  
  #include "global.h"
  #include "Coordinator.h"
+@@ -130,12 +131,20 @@ void Coordinator::Start()
+ 
+ void Coordinator::GetDestinationDir( char* szBuffer )
+ {
++  #if __DARWIN_UNIX03
++	char* szFileName = m_pOptions->getOption( OPTION_NZBFILE, NULL );
++	#else
+ 	const char* szFileName = m_pOptions->getOption( OPTION_NZBFILE, NULL );
++	#endif
+ 	
+ 	if( !strcmp( m_pOptions->getOption( OPTION_APPENDDIR, NULL ), "yes" ) )
+ 	{
+ 		char postname[1024];
++		#if __DARWIN_UNIX03
++		char* szBaseName = basename( szFileName );
++		#else
+ 		const char* szBaseName = basename( szFileName );
++		#endif
+ 		
+ 		// if .nzb file has a certain structure, try to strip out certain elements
+ 		if (sscanf(szBaseName,"msgid_%*d_%1023s", postname) == 1)

Added: trunk/dports/net/nzbget/files/patch-NZBQueue.h
===================================================================
--- trunk/dports/net/nzbget/files/patch-NZBQueue.h	                        (rev 0)
+++ trunk/dports/net/nzbget/files/patch-NZBQueue.h	2007-07-02 18:35:10 UTC (rev 26672)
@@ -0,0 +1,16 @@
+--- NZBQueue.h.orig	2007-07-02 02:04:09.000000000 -0700
++++ NZBQueue.h	2007-07-02 02:04:52.000000000 -0700
+@@ -45,8 +45,13 @@ public:
+ 	
+ 	virtual Job* 		GetNextJob();
+ 	virtual long long 	GetWaitingSize();
++	#if __DARWIN_UNIX03
++	char* 		GetFileName() const { return m_szFileName; }
++	char*			GetBaseFileName() const { return m_szBaseFileName; }
++	#else
+ 	const char* 		GetFileName() const { return m_szFileName; }
+ 	const char*			GetBaseFileName() const { return m_szBaseFileName; }
++	#endif
+ 	void 				PrintProgressInfo();
+ 	int					GetOriginalNumberOfJobs() const { return m_iOriginalNumberOfJobs; }
+ 	int					GetNumberOfJobs() const { return m_Jobs.size(); }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070702/29c1fdee/attachment.html


More information about the macports-changes mailing list