From d4bb64bbdbdda96f53d19a814ce25f581cd86e09 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 9 Mar 2015 16:19:51 +0100 Subject: [PATCH] New package: xcolorsel-1.1a --- srcpkgs/xcolorsel/patches/xcolorsel.patch | 145 ++++++++++++++++++++++ srcpkgs/xcolorsel/template | 22 ++++ 2 files changed, 167 insertions(+) create mode 100644 srcpkgs/xcolorsel/patches/xcolorsel.patch create mode 100644 srcpkgs/xcolorsel/template diff --git a/srcpkgs/xcolorsel/patches/xcolorsel.patch b/srcpkgs/xcolorsel/patches/xcolorsel.patch new file mode 100644 index 0000000000..f8cacb9d2c --- /dev/null +++ b/srcpkgs/xcolorsel/patches/xcolorsel.patch @@ -0,0 +1,145 @@ +--- RgbSink.c ++++ RgbSink.c +@@ -98,6 +99,12 @@ + #endif /* LIB_X11R5 */ + #endif /* LIB_X11R6 */ + ++/* workaround for Xaw 7.x */ ++#if XawVersion >= 7000002L ++typedef int (*_XawSinkIntFunc)(); ++typedef void (*_XawSinkVoidFunc)(); ++#endif ++ + /* No resources */ + + /* No actions */ +--- RgbText.c ++++ RgbText.c +@@ -146,7 +146,7 @@ + { XtNcolumns, XtCColumns, XtRDimension, sizeof(Dimension), offset(columns), + XtRString, (XtPointer) "30" }, + { XtNfile, XtCFile, XtRString, sizeof(String), offset(file), +- XtRString, (XtPointer) "/usr/lib/X11/rgb.txt" }, ++ XtRString, (XtPointer) "/usr/share/X11/rgb.txt" }, + { XtNtileWidth, XtCTileWidth, XtRDimension, sizeof(Dimension), offset(tile_width), + XtRString, (XtPointer) "3" }, + { XtNmaxRed, XtCMaxRed, XtRShort, sizeof(unsigned short), offset(max_red), +--- RgbSrc.c ++++ RgbSrc.c +@@ -81,8 +81,14 @@ + + #include + #include ++#include + #include "RgbSrcP.h" + ++/* workaround for Xaw 7.x */ ++#if (defined(XawVersion) && (XawVersion <= 7000002L)) ++typedef XawTextPosition (*_XawTextPositionFunc)(); ++#endif ++ + /* No resources */ + + /* No actions */ +--- Xcolorsel.ad ++++ Xcolorsel.ad +@@ -1,4 +1,6 @@ + ! Standard layout: ++Xcolorsel.width: 420 ++ + *.text.scrollHorizontal: WhenNeeded + *.text.scrollVertical: WhenNeeded + *.text.displayCaret: False +--- Imakefile ++++ Imakefile +@@ -82,9 +82,9 @@ + DependTarget() + + appdef-c.h: Xcolorsel-color.ad +- app2head Xcolorsel-color.ad > appdef-c.h ++ ./app2head Xcolorsel-color.ad > appdef-c.h + appdef.h: Xcolorsel.ad +- app2head Xcolorsel.ad > appdef.h ++ ./app2head Xcolorsel.ad > appdef.h + purge: + $(RM) xcolorsel *.o appdef.h appdef-c.h Xcolorsel.help *.tar.Z Makefile Makefile.bak makefile *.tar *.tar.gz + Xcolorsel.help: xcolorsel.man +--- Xcolorsel-color.ad ++++ Xcolorsel-color.ad +@@ -13,57 +13,57 @@ + ! If this is the case you may also want to include the following + ! (by removing the leading !) + +-!*.message.borderWidth:0 ++*.message.borderWidth:0 + + ! and to exclude (by inserting ! as the first character) the next lines: + +-*.message.borderWidth:2 +-*.Scrollbar.background: Chocolate2 +-*.Scrollbar.foreground: Chocolate4 ++!*.message.borderWidth:2 ++!*.Scrollbar.background: Chocolate2 ++!*.Scrollbar.foreground: Chocolate4 + + ! Other (generic) color settings: + +-*.borderColor: LightSalmon4 ++!*.borderColor: LightSalmon4 + + *.pointerColor: Black + *.pointerColorBackground: White + +-*.Background: SandyBrown +-*.Foreground: Salmon4 ++!*.Background: SandyBrown ++!*.Foreground: Salmon4 + + *.text.borderWidth: 2 + + *.displayMenu.borderWidth: 2 + +-*.Command.background: Chocolate1 +-*.Command.foreground: Chocolate4 ++!*.Command.background: Chocolate1 ++!*.Command.foreground: Chocolate4 + +-*.Toggle.background: Chocolate2 +-*.Toggle.foreground: Chocolate4 ++!*.Toggle.background: Chocolate2 ++!*.Toggle.foreground: Chocolate4 + + *.quit.background: OrangeRed2 +-*.quit.foreground: OrangeRed4 ++!*.quit.foreground: OrangeRed4 + + *.close.background: OrangeRed2 +-*.close.foreground: OrangeRed4 ++!*.close.foreground: OrangeRed4 + + *.about.background: OliveDrab2 +-*.about.foreground: OliveDrab4 ++!*.about.foreground: OliveDrab4 + + *.defaults.background: OliveDrab2 +-*.defaults.foreground: OliveDrab4 ++!*.defaults.foreground: OliveDrab4 + + *.grab.background: Gold1 +-*.grab.foreground: Gold4 ++!*.grab.foreground: Gold4 + + *.display.background: Gold1 +-*.display.foreground: Gold4 ++!*.display.foreground: Gold4 + + *.fileinfo.background: Gold2 +-*.fileinfo.foreground: Gold4 ++!*.fileinfo.foreground: Gold4 + + *.reverse.background: Gold2 +-*.reverse.foreground: Gold4 ++!*.reverse.foreground: Gold4 + + ! Include standard settings: + diff --git a/srcpkgs/xcolorsel/template b/srcpkgs/xcolorsel/template new file mode 100644 index 0000000000..5b116c4da2 --- /dev/null +++ b/srcpkgs/xcolorsel/template @@ -0,0 +1,22 @@ +# Template file for 'xcolorsel' +pkgname=xcolorsel +version=1.1a +revision=1 +wrksrc="${pkgname}-${version}.orig" +build_style=gnu-makefile +make_build_args="HELPFILE=/usr/share/X11/Xcolorsel.help" +make_install_args="install.man ${make_build_args}" +hostmakedepends="imake xorg-cf-files gccmakedep groff" +makedepends="libXaw-devel" +depends="rgb" +short_desc="Display and grab colors in X" +maintainer="Christian Neukirchen " +license="GPL-2" +homepage="http://packages.debian.org/stable/x11/xcolorsel" +distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz" +checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2 + +do_configure() { + xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0 + sed -i '/INSTALL/s,\$(XPALDIR)/Xcolorsel.help,$(HELPFILE),' Makefile +}