Date: Mon, 13 Aug 2007 11:56:38 -0400 (EDT) From: Thomas Abthorpe <thomas@goodking.ca> To: FreeBSD-gnats-submit@FreeBSD.org Cc: thomas@goodking.ca Subject: ports/115470: [PATCH] x11-wm/sapphire: update to 0.15.7, take maintainership Message-ID: <200708131556.l7DFucRD054010@goodking.goodking.ca> Resent-Message-ID: <200708131610.l7DGA8S6067710@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115470 >Category: ports >Synopsis: [PATCH] x11-wm/sapphire: update to 0.15.7, take maintainership >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Aug 13 16:10:08 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Thomas Abthorpe >Release: FreeBSD 6.2-STABLE i386 >Organization: GoodKing.Ca >Environment: System: FreeBSD goodking.goodking.ca 6.2-STABLE FreeBSD 6.2-STABLE #1: Thu Aug 2 09:34:27 EDT >Description: - Update to 0.15.7 - Take maintainership Added file(s): - files/patch-Makefile - files/patch-image.cc - files/patch-linkedlist.cc - files/patch-linkedlist.hh Removed file(s): - files/patch-ab - files/patch-ac - files/patch-src_linkedlist.hh Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- sapphire-0.15.7.patch begins here --- diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/Makefile /home/ports/x11-wm/sapphire/Makefile --- /usr/ports/x11-wm/sapphire/Makefile 2007-05-19 16:32:48.000000000 -0400 +++ /home/ports/x11-wm/sapphire/Makefile 2007-08-13 11:27:19.000000000 -0400 @@ -6,29 +6,25 @@ # PORTNAME= sapphire -PORTVERSION= 0.15.6 -PORTREVISION= 2 +PORTVERSION= 0.15.7 CATEGORIES= x11-wm -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF -MAINTAINER= ports@FreeBSD.org +MAINTAINER= thomas@goodking.ca COMMENT= Small window manager USE_GMAKE= yes REINPLACE_ARGS= -i'' -E USE_X_PREFIX= yes -GNU_CONFIGURE= yes post-extract: post-patch: ${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/data.inst -.for ii in data/menu/default configure data.inst src/sapphire.hh +.for ii in data/menu/default data.inst sapphire.hh ${REINPLACE_CMD} "s|/usr/local|${PREFIX}|g" ${WRKSRC}/${ii} .endfor ${CP} ${WRKSRC}/data.inst ${WRKSRC}/sapphire.inst - ${REINPLACE_CMD} "s|/usr/X11R6|${X11BASE}|g" ${WRKSRC}/configure post-install: ${INSTALL_SCRIPT} ${WRKSRC}/sapphire.inst ${PREFIX}/bin diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/distinfo /home/ports/x11-wm/sapphire/distinfo --- /usr/ports/x11-wm/sapphire/distinfo 2006-01-07 15:00:07.000000000 -0500 +++ /home/ports/x11-wm/sapphire/distinfo 2007-08-13 10:13:12.000000000 -0400 @@ -1,3 +1,3 @@ -MD5 (sapphire-0.15.6.tar.gz) = 00bdddd80e8bd3f1853961d4e9d87b5f -SHA256 (sapphire-0.15.6.tar.gz) = 1207b248aa203ebdb2e5ada3d80623bc2db5ac31fcc006847e5564feb284c787 -SIZE (sapphire-0.15.6.tar.gz) = 93029 +MD5 (sapphire-0.15.7.tar.gz) = 5c8a34b4c7b6e7c0dd049d7681350949 +SHA256 (sapphire-0.15.7.tar.gz) = dd6faa6205aa5dcd8b39c4d6dee0c6b7c1f3bbd910f52cd461dcf598b8890771 +SIZE (sapphire-0.15.7.tar.gz) = 58611 diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-Makefile /home/ports/x11-wm/sapphire/files/patch-Makefile --- /usr/ports/x11-wm/sapphire/files/patch-Makefile 1969-12-31 19:00:00.000000000 -0500 +++ /home/ports/x11-wm/sapphire/files/patch-Makefile 2007-08-13 11:17:10.000000000 -0400 @@ -0,0 +1,15 @@ +--- Makefile.orig 2001-11-03 10:51:57.000000000 -0500 ++++ Makefile 2007-08-13 11:16:04.000000000 -0400 +@@ -3,10 +3,10 @@ + # frankhale@yahoo.com + # 27 Oct 2001 + +-CC = g++ ++CC = ${CXX} + CFLAGS = -g -O2 -Wall #-arch=686 + +-prefix = /usr/X11R6 ++prefix = ${PREFIX} + XROOT = $(prefix) + DESTDIR = + INCLUDES = -I$(XROOT)/include diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-ab /home/ports/x11-wm/sapphire/files/patch-ab --- /usr/ports/x11-wm/sapphire/files/patch-ab 2000-02-21 11:57:03.000000000 -0500 +++ /home/ports/x11-wm/sapphire/files/patch-ab 1969-12-31 19:00:00.000000000 -0500 @@ -1,11 +0,0 @@ ---- src/Makefile.in.orig Mon Feb 7 07:57:13 2000 -+++ src/Makefile.in Fri Feb 18 03:26:13 2000 -@@ -66,7 +66,7 @@ - X_CFLAGS = @X_CFLAGS@ - X_LIBS = @X_LIBS@ - --CXX = g++ -+CXX = @CXX@ - LDADD = $(X_LIBS) - CPPFLAGS = $(X_CFLAGS) - bin_PROGRAMS = sapphire diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-ac /home/ports/x11-wm/sapphire/files/patch-ac --- /usr/ports/x11-wm/sapphire/files/patch-ac 2002-09-25 11:38:06.000000000 -0400 +++ /home/ports/x11-wm/sapphire/files/patch-ac 1969-12-31 19:00:00.000000000 -0500 @@ -1,80 +0,0 @@ -$FreeBSD: ports/x11-wm/sapphire/files/patch-ac,v 1.2 2002/09/25 15:38:06 trevor Exp $ - ---- src/image.cc.orig Mon Nov 6 04:05:06 2000 -+++ src/image.cc Wed Sep 25 15:27:57 2002 -@@ -28,7 +28,9 @@ - - #include "sapphire.hh" - -+#ifndef __STDC__ - #include <malloc.h> -+#endif - - #ifdef GradientHack - # include <math.h> -@@ -164,12 +166,12 @@ - } - - if (control->dither()) { -- short er, eg, eb, *or, *og, *ob, *nor, *nog, *nob, *por, *pog, *pob; -+ short er, eg, eb, *or_, *og, *ob, *nor, *nog, *nob, *por, *pog, *pob; - unsigned short *ort, *ogt, *obt; - -- control->getDitherBuffers(width + 2, &or, &og, &ob, &nor, &nog, &nob, -+ control->getDitherBuffers(width + 2, &or_, &og, &ob, &nor, &nog, &nob, - &ort, &ogt, &obt); -- if ((! or) || (! og) || (! ob) || (! nor) || (! nog) || (! nob) || -+ if ((! or_) || (! og) || (! ob) || (! nor) || (! nog) || (! nob) || - (! ort) || (! ogt) || (! obt)) { - fprintf(stderr, - "BImage::renderXImage: error getting dither information\n"); -@@ -179,7 +181,7 @@ - - x = width; - -- por = or; -+ por = or_; - pog = og; - pob = ob; - -@@ -210,14 +212,14 @@ - } - - for (x = 0; x < width; x++) { -- if (*(or + x) > 255) *(or + x) = 255; -- else if (*(or + x) < 0) *(or + x) = 0; -+ if (*(or_ + x) > 255) *(or_ + x) = 255; -+ else if (*(or_ + x) < 0) *(or_ + x) = 0; - if (*(og + x) > 255) *(og + x) = 255; - else if (*(og + x) < 0) *(og + x) = 0; - if (*(ob + x) > 255) *(ob + x) = 255; - else if (*(ob + x) < 0) *(ob + x) = 0; - -- r = *(tr + *(or + x)); -+ r = *(tr + *(or_ + x)); - g = *(tg + *(og + x)); - b = *(tb + *(ob + x)); - -@@ -279,11 +281,11 @@ - return 0; - } - -- er = *(or + x) - *(ort + *(or + x)); -+ er = *(or_ + x) - *(ort + *(or_ + x)); - eg = *(og + x) - *(ogt + *(og + x)); - eb = *(ob + x) - *(obt + *(ob + x)); - -- *(or + x + 1) += er; -+ *(or_ + x + 1) += er; - *(og + x + 1) += eg; - *(ob + x + 1) += eb; - -@@ -299,7 +301,7 @@ - off += image->width; - idata = (pd += image->bytes_per_line); - -- por = or; or = nor; nor = por; -+ por = or_; or_ = nor; nor = por; - pog = og; og = nog; nog = pog; - pob = ob; ob = nob; nob = pob; - } diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-image.cc /home/ports/x11-wm/sapphire/files/patch-image.cc --- /usr/ports/x11-wm/sapphire/files/patch-image.cc 1969-12-31 19:00:00.000000000 -0500 +++ /home/ports/x11-wm/sapphire/files/patch-image.cc 2007-08-13 11:25:51.000000000 -0400 @@ -0,0 +1,78 @@ +--- image.cc.orig 2001-11-03 12:14:22.000000000 -0500 ++++ image.cc 2007-08-13 11:25:46.000000000 -0400 +@@ -22,7 +22,9 @@ + + #include "sapphire.hh" + ++#ifndef __STDC__ + #include <malloc.h> ++#endif + + #ifdef GradientHack + # include <math.h> +@@ -158,12 +160,12 @@ + } + + if (control->dither()) { +- short er, eg, eb, *or, *og, *ob, *nor, *nog, *nob, *por, *pog, *pob; ++ short er, eg, eb, *or_, *og, *ob, *nor, *nog, *nob, *por, *pog, *pob; + unsigned short *ort, *ogt, *obt; + +- control->getDitherBuffers(width + 2, &or, &og, &ob, &nor, &nog, &nob, ++ control->getDitherBuffers(width + 2, &or_, &og, &ob, &nor, &nog, &nob, + &ort, &ogt, &obt); +- if ((! or) || (! og) || (! ob) || (! nor) || (! nog) || (! nob) || ++ if ((! or_) || (! og) || (! ob) || (! nor) || (! nog) || (! nob) || + (! ort) || (! ogt) || (! obt)) { + fprintf(stderr, + "BImage::renderXImage: error getting dither information\n"); +@@ -173,7 +175,7 @@ + + x = width; + +- por = or; ++ por = or_; + pog = og; + pob = ob; + +@@ -204,14 +206,14 @@ + } + + for (x = 0; x < width; x++) { +- if (*(or + x) > 255) *(or + x) = 255; +- else if (*(or + x) < 0) *(or + x) = 0; ++ if (*(or_ + x) > 255) *(or_ + x) = 255; ++ else if (*(or_ + x) < 0) *(or_ + x) = 0; + if (*(og + x) > 255) *(og + x) = 255; + else if (*(og + x) < 0) *(og + x) = 0; + if (*(ob + x) > 255) *(ob + x) = 255; + else if (*(ob + x) < 0) *(ob + x) = 0; + +- r = *(tr + *(or + x)); ++ r = *(tr + *(or_ + x)); + g = *(tg + *(og + x)); + b = *(tb + *(ob + x)); + +@@ -273,11 +275,11 @@ + return 0; + } + +- er = *(or + x) - *(ort + *(or + x)); ++ er = *(or_ + x) - *(ort + *(or_ + x)); + eg = *(og + x) - *(ogt + *(og + x)); + eb = *(ob + x) - *(obt + *(ob + x)); + +- *(or + x + 1) += er; ++ *(or_ + x + 1) += er; + *(og + x + 1) += eg; + *(ob + x + 1) += eb; + +@@ -293,7 +295,7 @@ + off += image->width; + idata = (pd += image->bytes_per_line); + +- por = or; or = nor; nor = por; ++ por = or_; or_ = nor; nor = por; + pog = og; og = nog; nog = pog; + pob = ob; ob = nob; nob = pob; + } diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-linkedlist.cc /home/ports/x11-wm/sapphire/files/patch-linkedlist.cc --- /usr/ports/x11-wm/sapphire/files/patch-linkedlist.cc 1969-12-31 19:00:00.000000000 -0500 +++ /home/ports/x11-wm/sapphire/files/patch-linkedlist.cc 2007-08-13 11:20:42.000000000 -0400 @@ -0,0 +1,29 @@ +--- linkedlist.cc.orig 2001-11-03 12:14:01.000000000 -0500 ++++ linkedlist.cc 2007-08-13 11:19:56.000000000 -0400 +@@ -131,7 +131,7 @@ + // looking for. + if(temp == NULL) + { +- cerr << "_LinkedList::remove : element not found" << endl; ++ std::cerr << "_LinkedList::remove : element not found" << std::endl; + return; + + } else { +@@ -172,7 +172,7 @@ + + reset(direction); + } else { +- cerr << "_LinkedListIterator: List is NULL" << endl; ++ std::cerr << "_LinkedListIterator: List is NULL" << std::endl; + exit(-1); + } + } +@@ -192,7 +192,7 @@ + break; + + default: +- cerr << "_LinkedListIterator: Illegal direction for list traversal using FORWARD" << endl; ++ std::cerr << "_LinkedListIterator: Illegal direction for list traversal using FORWARD" << std::endl; + list->setForward(); + element = list->head; + break; diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-linkedlist.hh /home/ports/x11-wm/sapphire/files/patch-linkedlist.hh --- /usr/ports/x11-wm/sapphire/files/patch-linkedlist.hh 1969-12-31 19:00:00.000000000 -0500 +++ /home/ports/x11-wm/sapphire/files/patch-linkedlist.hh 2007-08-13 10:46:20.000000000 -0400 @@ -0,0 +1,29 @@ +--- linkedlist.hh.orig 2001-11-03 12:17:15.000000000 -0500 ++++ linkedlist.hh 2007-08-13 10:45:53.000000000 -0400 +@@ -42,8 +42,8 @@ + // I wanna make the next,prev, and data pointers private. + // But I still need LinkedList and LinkedListIterator + // to access those pointers. +- friend _LinkedList; +- friend _LinkedListIterator; ++ friend class _LinkedList; ++ friend class _LinkedListIterator; + + private: // Variables + +@@ -67,7 +67,7 @@ + Element *head, *tail, *iter; + int elements; + +- friend _LinkedListIterator; ++ friend class _LinkedListIterator; + + private: // Member functions + +@@ -160,4 +160,4 @@ + T* current() { return (T*) _LinkedListIterator::current(); } + }; + +-#endif +\ No newline at end of file ++#endif diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/files/patch-src_linkedlist.hh /home/ports/x11-wm/sapphire/files/patch-src_linkedlist.hh --- /usr/ports/x11-wm/sapphire/files/patch-src_linkedlist.hh 2002-09-25 11:38:06.000000000 -0400 +++ /home/ports/x11-wm/sapphire/files/patch-src_linkedlist.hh 1969-12-31 19:00:00.000000000 -0500 @@ -1,13 +0,0 @@ -$FreeBSD: ports/x11-wm/sapphire/files/patch-src_linkedlist.hh,v 1.1 2002/09/25 15:38:06 trevor Exp $ - ---- src/linkedlist.hh.orig Mon Nov 6 03:53:25 2000 -+++ src/linkedlist.hh Wed Sep 25 15:19:29 2002 -@@ -72,7 +72,7 @@ - int elements; - __llist_node *_first, *_last; - -- friend __llist_iterator; -+ friend class __llist_iterator; - - - protected: diff -ruN --exclude=CVS /usr/ports/x11-wm/sapphire/pkg-descr /home/ports/x11-wm/sapphire/pkg-descr --- /usr/ports/x11-wm/sapphire/pkg-descr 2004-04-07 14:02:33.000000000 -0400 +++ /home/ports/x11-wm/sapphire/pkg-descr 2007-08-13 11:54:24.000000000 -0400 @@ -4,5 +4,3 @@ You may wish to install the x11-wm/sapphire-themes port/package too. - -Trevor Johnson --- sapphire-0.15.7.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708131556.l7DFucRD054010>