pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/efax-gtk Changes 2.2.15:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca0bde8731b4
branches:  trunk
changeset: 491814:ca0bde8731b4
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Mar 30 13:49:28 2005 +0000

description:
Changes 2.2.15:
        Fix bug where the Trash folder is dragged in the fax lists
        (fax_list_manager.cpp).

        Greek translation added (the Hellenic Linux Users Group
        translation team).

        Italian translation updated (Luca De Rugeriis).

        Adjust image sizes for toolbar buttons in GTK+2.4 or higher
        (fax_list.cpp, file_list.cpp and socket_list.cpp).

        Provision to ensure synchronisation of memory where necessary in
        multi-processor systems (efax_controller.h and
        efax_controller.cpp).

diffstat:

 comms/efax-gtk/Makefile         |  53 +++++++++++---------------
 comms/efax-gtk/PLIST            |  14 +++++--
 comms/efax-gtk/distinfo         |  17 ++++----
 comms/efax-gtk/patches/patch-aa |  57 ++++++++++++----------------
 comms/efax-gtk/patches/patch-ab |  64 +++++++++++++++++++-------------
 comms/efax-gtk/patches/patch-ac |  81 ++++++++++++++++++----------------------
 comms/efax-gtk/patches/patch-ad |  38 ++++++-------------
 7 files changed, 151 insertions(+), 173 deletions(-)

diffs (truncated from 380 to 300 lines):

diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/Makefile
--- a/comms/efax-gtk/Makefile   Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/Makefile   Wed Mar 30 13:49:28 2005 +0000
@@ -1,39 +1,30 @@
-# $NetBSD: Makefile,v 1.16 2004/12/29 15:42:37 minskim Exp $
+# $NetBSD: Makefile,v 1.17 2005/03/30 13:49:28 adam Exp $
 
-DISTNAME=              efax-gtk-1.0.1b.src
-PKGNAME=               efax-gtk-1.0.1b
-PKGREVISION=           6
-CATEGORIES=            comms
-MASTER_SITES=          http://www.cvine.freeserve.co.uk/efax-gtk/
-EXTRACT_SUFX=          .tgz
+DISTNAME=      efax-gtk-2.2.15.src
+PKGNAME=       efax-gtk-2.2.15
+CATEGORIES=    comms
+MASTER_SITES=  http://www.cvine.freeserve.co.uk/efax-gtk/
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    tech-pkg%NetBSD.org@localhost
+HOMEPAGE=      http://www.cvine.freeserve.co.uk/efax-gtk/
+COMMENT=       GTK frontend for efax
 
-MAINTAINER=            tech-pkg%NetBSD.org@localhost
-HOMEPAGE=              http://www.cvine.freeserve.co.uk/efax-gtk/
-COMMENT=               GTK frontend for efax
-
-DEPENDS+=              efax>=0.9:../../comms/efax
+DEPENDS+=      efax>=0.9:../../comms/efax
 
-WRKSRC=                        ${WRKDIR}/efax-gtk
-GNU_CONFIGURE=         YES
-USE_BUILDLINK3=        YES
-USE_PKGINSTALL=                YES
+WRKSRC=                        ${WRKDIR}/${PKGNAME}
+USE_BUILDLINK3=        yes
+USE_PKGINSTALL=                yes
+USE_PKGLOCALEDIR=      yes
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --with-spooldir=${VARBASE}/spool/efax
 
-CONFIGURE_ARGS+=       --with-spooldir=${VARBASE}/spool/efax
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
-
-EGDIR=                 ${PREFIX}/share/examples/efax-gtk
+EGDIR=                 ${PREFIX}/share/examples
 CONF_FILES=            ${EGDIR}/efax-gtkrc ${PKG_SYSCONFDIR}/efax-gtkrc
 
-BUILD_TARGET=          efax-gtk
-
-post-extract:
-       ${GZIP_CMD} -d ${WRKSRC}/efax-gtk.1.gz
-
-pre-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/efax-gtk
-
-.include "../../devel/libsigc++10/buildlink3.mk"
-.include "../../x11/gtk/buildlink3.mk"
-.include "../../x11/gtk--/buildlink3.mk"
+.include "../../devel/libsigc++2/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/gtkmm24/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/PLIST
--- a/comms/efax-gtk/PLIST      Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/PLIST      Wed Mar 30 13:49:28 2005 +0000
@@ -1,6 +1,12 @@
-@comment $NetBSD: PLIST,v 1.2 2002/12/25 13:18:24 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.3 2005/03/30 13:49:28 adam Exp $
 bin/efax-gtk
-bin/efax-gtk-send
 man/man1/efax-gtk.1
-share/examples/efax-gtk/efax-gtkrc
-@dirrm share/examples/efax-gtk
+share/applications/efax-gtk.desktop
+share/examples/efax-gtkrc
+${PKGLOCALEDIR}/locale/bg/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/el/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/en_GB/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/he/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/efax-gtk.mo
diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/distinfo
--- a/comms/efax-gtk/distinfo   Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/distinfo   Wed Mar 30 13:49:28 2005 +0000
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 16:05:29 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/03/30 13:49:28 adam Exp $
 
-SHA1 (efax-gtk-1.0.1b.src.tgz) = 74b92928239ec810ae1691205c96dd179f059e87
-RMD160 (efax-gtk-1.0.1b.src.tgz) = 589f1bb151d23d4cb5fe9a9dca187ad22833eda0
-Size (efax-gtk-1.0.1b.src.tgz) = 110544 bytes
-SHA1 (patch-aa) = f6963b4adb7f65e63f386f0c60dded7f6236323b
-SHA1 (patch-ab) = d8bc963880c06a86f9562defed1185301cc84ad0
-SHA1 (patch-ac) = 00e80cf93f1122627f8b88bb6ebe49a3bbc6de51
-SHA1 (patch-ad) = 9fe7a1e26dae9653909f33b7f98324b9afa3ada9
-SHA1 (patch-ae) = ce594dbd2cbf67efca9109b0e3c38cbed7e48a21
+SHA1 (efax-gtk-2.2.15.src.tgz) = 119ff4f08c3dd2e7c9238310dda62f4d33bea7de
+RMD160 (efax-gtk-2.2.15.src.tgz) = e0531c813a3e1eb4dd893f3bba1a273d9d5dc13f
+Size (efax-gtk-2.2.15.src.tgz) = 708848 bytes
+SHA1 (patch-aa) = cb333234fecc9777f0667508086fb23303e3accf
+SHA1 (patch-ab) = 9c5bfb781e39955a5fa25d72424c3cd0b7cb4eaf
+SHA1 (patch-ac) = dc991277bbcecd44c166bff0880e136fc7443337
+SHA1 (patch-ad) = 615bee9838f29b03ad5f81afd7dc4ed5e648ca62
diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/patches/patch-aa
--- a/comms/efax-gtk/patches/patch-aa   Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/patches/patch-aa   Wed Mar 30 13:49:28 2005 +0000
@@ -1,38 +1,29 @@
-$NetBSD: patch-aa,v 1.3 2003/11/14 11:18:57 wiz Exp $
+$NetBSD: patch-aa,v 1.4 2005/03/30 13:49:28 adam Exp $
 
---- Makefile.presets.orig      Sat Apr  6 13:07:24 2002
-+++ Makefile.presets
-@@ -5,7 +5,7 @@
- # produced by using automake
+--- Makefile.in.orig   2005-02-26 14:41:26.000000000 +0000
++++ Makefile.in
+@@ -141,7 +141,7 @@ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
  
- OUTPUT_OPTION = -o $@
--COMPILE_OPTION = -c $*.cpp
-+COMPILE_OPTION = -DRCDIR=\"$(RCDIR)\" -c $*.cpp
- FAX_TARGETS = main.o pipes.o mainwindow.o dialogs.o efax_controller.o fax_list.o addressbook.o settings.o settings_help.o
+-SUBDIRS = src efax po efax-gtk-faxfilter
++SUBDIRS = src po efax-gtk-faxfilter
  
- 
-@@ -40,18 +40,12 @@ settings_help.o: settings_help.cpp setti
-       $(CC) $(CXXFLAGS) $(COMPILE_OPTION) $(OUTPUT_OPTION)
+ desktopdir = $(datadir)/applications
  
- install: efax-gtk
--      $(INSTALL) -d $(BINDIR)
--      $(INSTALL) -d $(RCDIR)
--      $(INSTALL) -d $(MANDIR)/man1
--      $(INSTALL) -m644 -oroot -groot efax-gtk efax-gtk-send $(BINDIR)/
--      chmod +x $(BINDIR)/efax-gtk
--      chmod +x $(BINDIR)/efax-gtk-send
--      $(INSTALL) -m644 -oroot -groot efax-gtkrc $(RCDIR)/
--      $(INSTALL) -m644 -oroot -groot efax-gtk.1.gz $(MANDIR)/man1/
--      $(INSTALL) -d $(SPOOLDIR)
--      chgrp lp $(SPOOLDIR)
--      $(INSTALL) -m644 -oroot -groot efax-gtk-faxfilter $(SPOOLDIR)/
--      chmod +x $(SPOOLDIR)/efax-gtk-faxfilter
-+      $(BSD_INSTALL_PROGRAM) efax-gtk $(BINDIR)/
-+      $(BSD_INSTALL_SCRIPT) efax-gtk-send $(BINDIR)/
-+      $(BSD_INSTALL_DATA) efax-gtkrc $(DATADIR)/examples/efax-gtk/
-+      $(BSD_INSTALL_MAN) efax-gtk.1 $(MANDIR)/man1/
-+      $(BSD_INSTALL_DATA_DIR) $(SPOOLDIR)
-+      $(BSD_INSTALL_SCRIPT) efax-gtk-faxfilter $(SPOOLDIR)/
+@@ -265,12 +265,12 @@ uninstall-desktopDATA:
+ sysconfDATA_INSTALL = $(INSTALL_DATA)
+ install-sysconfDATA: $(sysconf_DATA)
+       @$(NORMAL_INSTALL)
+-      $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++      $(mkinstalldirs) $(datadir)/examples
+       @list='$(sysconf_DATA)'; for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+-        echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+-        $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
++        echo " $(sysconfDATA_INSTALL) $$d$$p $(datadir)/examples/$$f"; \
++        $(sysconfDATA_INSTALL) $$d$$p $(datadir)/examples/$$f; \
+       done
  
- clean:
-       rm -f *.o
+ uninstall-sysconfDATA:
diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/patches/patch-ab
--- a/comms/efax-gtk/patches/patch-ab   Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/patches/patch-ab   Wed Mar 30 13:49:28 2005 +0000
@@ -1,32 +1,44 @@
-$NetBSD: patch-ab,v 1.2 2002/12/25 13:18:25 jmmv Exp $
+$NetBSD: patch-ab,v 1.3 2005/03/30 13:49:28 adam Exp $
 
---- main.cpp.orig      Sat Apr  6 13:07:24 2002
-+++ main.cpp
-@@ -106,7 +106,7 @@ string configure_prog(bool reread) {
+--- src/efax_controller.cpp.orig       2005-03-30 15:38:46.000000000 +0000
++++ src/efax_controller.cpp
+@@ -234,8 +234,8 @@ std::pair<const char*, char* const*> Efa
+ 
+   *temp_pp = 0;
  
-   if (!prog_config.found_rcfile) {
+-  char* prog_name = new char[std::strlen("efax-0.9a") + 1];
+-  std::strcpy(prog_name, "efax-0.9a");
++  char* prog_name = new char[std::strlen("efax") + 1];
++  std::strcpy(prog_name, "efax");
  
--    rcfile = "/usr/local/etc/";
-+    rcfile = RCDIR "/";
-     rcfile += RC_FILE;
- 
- #ifdef HAVE_IOS_NOCREATE
-@@ -123,7 +123,7 @@ string configure_prog(bool reread) {
+   return std::pair<const char*, char* const*>(prog_name, exec_parms);
+ }
+@@ -290,7 +290,7 @@ void EfaxController::sendfax_slot(void) 
  
-   if (!prog_config.found_rcfile) {
- 
--    rcfile = "/etc/";
-+    rcfile = RCDIR "/";
-     rcfile += RC_FILE;
+     // if we reached this point, then the execvp() call must have failed
+     // report error and exit - uses _exit() and not exit()
+-    write_error("Can't find the efax-0.9a program - please check your installation\n"
++    write_error("Can't find the efax program - please check your installation\n"
+               "and the PATH environmental variable\n");
+     _exit(EXEC_ERROR); 
+   } // end of child process
+@@ -634,8 +634,8 @@ std::pair<const char*, char* const*> Efa
+   
+   *temp_pp = 0;
  
- #ifdef HAVE_IOS_NOCREATE
-@@ -139,8 +139,7 @@ string configure_prog(bool reread) {
-   }
+-  char* prog_name = new char[std::strlen("efax-0.9a") + 1];
+-  std::strcpy(prog_name, "efax-0.9a");
++  char* prog_name = new char[std::strlen("efax") + 1];
++  std::strcpy(prog_name, "efax");
+   
+   return std::pair<const char*, char* const*>(prog_name, exec_parms);
+ }
+@@ -742,7 +742,7 @@ void EfaxController::receive(State mode)
  
-   if (!prog_config.found_rcfile) {
--    return_val = "Can't find or open file /etc/" RC_FILE ",\n"
--                 "/usr/local/etc/" RC_FILE;
-+    return_val = "Can't find or open file " RCDIR "/" RC_FILE;
-     if (!prog_config.homedir.empty()) {
-       return_val +=  " or ";
-       return_val += prog_config.homedir + "/." RC_FILE;
+       // if we reached this point, then the execvp() call must have failed
+       // report the error and end this process - use _exit() and not exit()
+-      write_error("Can't find the efax-0.9a program - please check your installation\n"
++      write_error("Can't find the efax program - please check your installation\n"
+                 "and the PATH environmental variable\n");
+       _exit(EXEC_ERROR); 
+     } // end of child process
diff -r f4bb98568dbf -r ca0bde8731b4 comms/efax-gtk/patches/patch-ac
--- a/comms/efax-gtk/patches/patch-ac   Wed Mar 30 13:38:17 2005 +0000
+++ b/comms/efax-gtk/patches/patch-ac   Wed Mar 30 13:49:28 2005 +0000
@@ -1,49 +1,42 @@
-$NetBSD: patch-ac,v 1.2 2002/12/25 13:18:25 jmmv Exp $
+$NetBSD: patch-ac,v 1.3 2005/03/30 13:49:28 adam Exp $
 
---- settings.cpp.orig  Sat Apr  6 13:07:24 2002
-+++ settings.cpp
-@@ -1040,13 +1040,11 @@ void SettingsDialog::read_config(bool se
-   if (!get_rcfile_path(search_localfile)) {
-     string message;
-     if (search_localfile) {
--      message = "Can't find or open file /etc/" RC_FILE ",\n"
--              "/usr/local/etc/" RC_FILE " or ";
-+      message = "Can't find or open file " RCDIR "/" RC_FILE " or ";
-       message += prog_config.homedir + "/." RC_FILE "\n";
-     }
-     else {
--      message = "Can't find or open file /etc/" RC_FILE "\n"
--              "or /usr/local/etc/" RC_FILE;
-+      message = "Can't find or open file " RCDIR "/" RC_FILE;
-       message += prog_config.homedir + "/." RC_FILE "\n";
-     }
-     write_error(message.c_str());
-@@ -1172,8 +1170,7 @@ void SettingsDialog::read_config(bool se
- }
+--- src/fax_list.cpp.orig      2005-03-30 15:43:12.000000000 +0000
++++ src/fax_list.cpp
+@@ -533,7 +533,7 @@ std::pair<const char*, char* const*> Fax
+   std::vector<std::string> efix_parms;
+   std::string temp;
+     
+-  efix_parms.push_back("efix-0.9a");
++  efix_parms.push_back("efix");
+   // shut up efix (comment out next line and uncomment following one if errors to be reported)
+   efix_parms.push_back("-v");
+   //efix_parms.push_back("-ve");
+@@ -679,8 +679,8 @@ std::pair<const char*, char* const*> Fax
+   
+   *temp_pp = 0;
  
- void SettingsDialog::get_reset_settings_prompt(void) {
--  PromptDialog* dialog_p = new PromptDialog("Enter settings from /etc/efax-gtkrc or\n"
--                                          "/usr/local/etc/efax-gtkrc?",
-+  PromptDialog* dialog_p = new PromptDialog("Enter settings from " RCDIR "/efax-gtkrc?",
-                                           "Reset settings", standard_size, *this);
-   if (!dialog_p) {
-     cerr << "Memory allocation error in SettingsDialog::get_reset_settings_prompt()" << endl;
-@@ -1248,17 +1245,11 @@ bool SettingsDialog::get_rcfile_path(boo
+-  char* prog_name = new char[std::strlen("efix-0.9a") + 1];
+-  std::strcpy(prog_name, "efix-0.9a");
++  char* prog_name = new char[std::strlen("efix") + 1];



Home | Main Index | Thread Index | Old Index