[77102] trunk/dports/x11

ryandesign at macports.org ryandesign at macports.org
Sat Mar 19 23:07:11 PDT 2011


Revision: 77102
          http://trac.macports.org/changeset/77102
Author:   ryandesign at macports.org
Date:     2011-03-19 23:07:11 -0700 (Sat, 19 Mar 2011)
Log Message:
-----------
gtktalog: new port, version 1.0.4; see #28845

Added Paths:
-----------
    trunk/dports/x11/gtktalog/
    trunk/dports/x11/gtktalog/Portfile
    trunk/dports/x11/gtktalog/files/
    trunk/dports/x11/gtktalog/files/patch-gtktalog-changes.diff

Added: trunk/dports/x11/gtktalog/Portfile
===================================================================
--- trunk/dports/x11/gtktalog/Portfile	                        (rev 0)
+++ trunk/dports/x11/gtktalog/Portfile	2011-03-20 06:07:11 UTC (rev 77102)
@@ -0,0 +1,54 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                gtktalog
+version             1.0.4
+categories          x11
+platforms           darwin
+maintainers         comcast.net:terry.droeger
+
+description         X11 catalog cd dvd
+
+long_description    GTKtalog is a tool to make a disk catalog: you can use \
+                    it to create a really small database with images of \
+                    files and directories of your CDs. \
+                    Then you can browse all your CDs very quickly, see \
+                    contents of some files (tar.gz, rpm files ...). \
+                    You can assign a category and a description to each \
+                    directory and/or file. \
+                    You can search files in your database using filename, \
+                    category, description and/or file information \
+                    parameters, and find which disc the file you are \
+                    looking for is in.
+
+homepage            http://www.nongnu.org/gtktalog/
+master_sites        http://download.savannah.gnu.org/releases/gtktalog
+
+checksums           md5     54ed43256a0d11d078f67485e0a80e0a \
+                    sha1    4f68dfcc30f74a41ae7e88d00f3fd21265b8bfa4
+
+use_bzip2           yes
+
+depends_lib         port:gtk1 \
+                    port:gnome-libs \
+                    port:zlib \
+                    port:cdrtools \
+                    port:ncurses
+
+# cdrtools is not universal
+universal_variant   no
+
+patchfiles          patch-gtktalog-changes.diff
+patch.pre_args      -p1
+
+use_autoreconf      yes
+
+autoreconf.args     --force -i
+
+use_parallel_build  yes
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}-(\[0-9.\]+)\\.tar


Property changes on: trunk/dports/x11/gtktalog/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/x11/gtktalog/files/patch-gtktalog-changes.diff
===================================================================
--- trunk/dports/x11/gtktalog/files/patch-gtktalog-changes.diff	                        (rev 0)
+++ trunk/dports/x11/gtktalog/files/patch-gtktalog-changes.diff	2011-03-20 06:07:11 UTC (rev 77102)
@@ -0,0 +1,160 @@
+diff -rupN gtktalog-1.0.4.orig/configure.in gtktalog-1.0.4.new/configure.in
+--- gtktalog-1.0.4.orig/configure.in	2003-09-01 16:54:47.000000000 -0500
++++ gtktalog-1.0.4.new/configure.in	2011-03-15 16:18:57.000000000 -0500
+@@ -17,12 +17,14 @@ AM_PROG_LEX
+ AC_PROG_YACC
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
++AM_PROG_MKDIR_P
+ #AM_PROG_LIBTOOL
+ 
+ dnl Internationalization
+ dnl ====================
+ ALL_LINGUAS="fr pl hu ja es sv ca cs nl de sk it ru pt_BR"
+ AM_GNU_GETTEXT([external])
++AM_GNU_GETTEXT_VERSION(0.18.1)
+ 
+ localedir=${datadir}/locale
+ AC_SUBST(localedir)
+@@ -50,7 +52,7 @@ dnl ========================
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h unistd.h)
++AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h unistd.h sys/mtio.h)
+ 
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ dnl ==============================================================
+diff -rupN gtktalog-1.0.4.orig/po/Makefile.in.in gtktalog-1.0.4.new/po/Makefile.in.in
+--- gtktalog-1.0.4.orig/po/Makefile.in.in	2003-05-08 04:23:12.000000000 -0500
++++ gtktalog-1.0.4.new/po/Makefile.in.in	2011-03-15 15:28:25.000000000 -0500
+@@ -21,6 +21,7 @@ VPATH = @srcdir@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
++datarootdir = @datarootdir@
+ localedir = $(datadir)/locale
+ gettextsrcdir = $(datadir)/gettext/po
+ 
+diff -rupN gtktalog-1.0.4.orig/src/gtktalog/eject.c gtktalog-1.0.4.new/src/gtktalog/eject.c
+--- gtktalog-1.0.4.orig/src/gtktalog/eject.c	2000-07-21 15:38:42.000000000 -0500
++++ gtktalog-1.0.4.new/src/gtktalog/eject.c	2011-03-13 21:01:44.000000000 -0500
+@@ -20,7 +20,9 @@
+ #include <gnome.h>
+ #include <stdio.h>
+ #include <sys/ioctl.h>
++#if defined(HAVE_SYS_MTIO_H)
+ #include <sys/mtio.h>
++#endif
+ #include <sys/types.h>
+ #include <linux/cdrom.h>
+ #include <fcntl.h>
+diff -rupN gtktalog-1.0.4.orig/src/gtktalog/fastaddisk.c gtktalog-1.0.4.new/src/gtktalog/fastaddisk.c
+--- gtktalog-1.0.4.orig/src/gtktalog/fastaddisk.c	2002-05-18 11:03:21.000000000 -0500
++++ gtktalog-1.0.4.new/src/gtktalog/fastaddisk.c	2011-03-13 21:02:45.000000000 -0500
+@@ -30,14 +30,15 @@
+ #include <signal.h>
+ #include <sys/stat.h>
+ #include <sys/wait.h>
++#if defined(HAVE_SYS_MTIO_H)
+ #include <sys/mtio.h>
++#endif
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #if defined(USE_PTHREADS)
+ #    include <pthread.h>
+ #endif
+-#include <sys/mtio.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <unistd.h>
+diff -rupN gtktalog-1.0.4.orig/src/gtktalog/progressbar.c gtktalog-1.0.4.new/src/gtktalog/progressbar.c
+--- gtktalog-1.0.4.orig/src/gtktalog/progressbar.c	2002-04-30 07:51:38.000000000 -0500
++++ gtktalog-1.0.4.new/src/gtktalog/progressbar.c	2011-03-14 16:28:13.000000000 -0500
+@@ -90,6 +90,7 @@ progress_needReset ()
+ glong
+ getStats (char *foldername)
+ {
++#if HAVE_STATFS
+   struct statfs statBuf;
+ 
+   if (statfs (foldername, &statBuf) == -1)
+@@ -98,6 +99,9 @@ getStats (char *foldername)
+ 
+   /* Total size of the CD in Bytes */
+   return statBuf.f_blocks * statBuf.f_bsize;
++#else
++  return -1;
++#endif
+ }
+ 
+ void
+diff -rupN gtktalog-1.0.4.orig/src/gtktalog/report.c gtktalog-1.0.4.new/src/gtktalog/report.c
+--- gtktalog-1.0.4.orig/src/gtktalog/report.c	2003-06-20 14:23:58.000000000 -0500
++++ gtktalog-1.0.4.new/src/gtktalog/report.c	2011-03-16 12:28:43.000000000 -0500
+@@ -333,7 +333,7 @@ print_file (FILE_DATA * fd, FILE * file)
+   if (gb_html_report)
+     fprintf (file, "<TR>");
+   if (gb_xml_report)
+-    fprintf (file, xml_directory_st);
++    fprintf (file, "%s", xml_directory_st);
+   if (gb_check_disks)
+     {
+       if (gb_xml_report)
+@@ -521,7 +521,7 @@ print_file (FILE_DATA * fd, FILE * file)
+   if (gb_html_report)
+     fprintf (file, "</TR>");
+   if (gb_xml_report)
+-    fprintf (file, xml_directory_ed);
++    fprintf (file, "%s", xml_directory_ed);
+   fprintf (file, "\n");
+ }
+ 
+diff -rupN gtktalog-1.0.4.orig/src/plugins/aviinfo.cpp gtktalog-1.0.4.new/src/plugins/aviinfo.cpp
+--- gtktalog-1.0.4.orig/src/plugins/aviinfo.cpp	2001-01-06 07:34:03.000000000 -0600
++++ gtktalog-1.0.4.new/src/plugins/aviinfo.cpp	2011-03-16 12:25:10.000000000 -0500
+@@ -63,11 +63,11 @@ struct avi
+ 	struct avi_audio audio;
+ };
+ 
+-char* version="0.1";
+-char* author="Panagiotis Issaris";
+-char* email="panagiotis.issaris at advalvas.be";
+-char* pluginname="aviinfo";
+-char* date="2000";
++const char* version="0.1";
++const char* author="Panagiotis Issaris";
++const char* email="panagiotis.issaris at advalvas.be";
++const char* pluginname="aviinfo";
++const char* date="2000";
+ 
+ void strtolower(char* str)
+ {
+diff -rupN gtktalog-1.0.4.orig/src/plugins/html.cpp gtktalog-1.0.4.new/src/plugins/html.cpp
+--- gtktalog-1.0.4.orig/src/plugins/html.cpp	2002-04-13 15:45:30.000000000 -0500
++++ gtktalog-1.0.4.new/src/plugins/html.cpp	2011-03-16 12:24:06.000000000 -0500
+@@ -19,14 +19,13 @@
+  *                                                                         *
+  ***************************************************************************/
+ 
+-#include <iostream.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+ 
+ 
+-char* RESPONSE_END="|END|";
++const char* RESPONSE_END="|END|";
+ 
+ void strtolower(char* str)
+ {
+diff -rupN gtktalog-1.0.4.orig/src/plugins/mp3.cpp gtktalog-1.0.4.new/src/plugins/mp3.cpp
+--- gtktalog-1.0.4.orig/src/plugins/mp3.cpp	2000-08-20 09:22:51.000000000 -0500
++++ gtktalog-1.0.4.new/src/plugins/mp3.cpp	2011-03-16 12:20:54.000000000 -0500
+@@ -1,4 +1,3 @@
+-#include <iostream.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include "mp3tag.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110319/807a83b0/attachment-0001.html>


More information about the macports-changes mailing list