summaryrefslogtreecommitdiff
path: root/x11/kdebase3
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2005-02-06 12:38:43 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2005-02-06 12:38:43 +0000
commitd50619c6d2a51b3ab355e72f8a877aa5dc6af3a7 (patch)
treef961e38b9b398fb23bf914f933ef7512ed9a9ebd /x11/kdebase3
parentAdd kdelibs-nocups, a cups-disabled version of kdelibs. This port/package (diff)
More cups-fixes and a patch that prevents konqueror from resetting
preview settings when changing icon-sizes.
Notes
Notes: svn path=/head/; revision=128141
Diffstat (limited to 'x11/kdebase3')
-rw-r--r--x11/kdebase3/Makefile5
-rw-r--r--x11/kdebase3/files/patch-kcontrol_konq_previews.cpp14
-rw-r--r--x11/kdebase3/files/patch-kdeprint_descriptions_Makefile.in13
3 files changed, 32 insertions, 0 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile
index 6ced36a3bd56..464fa91c76f1 100644
--- a/x11/kdebase3/Makefile
+++ b/x11/kdebase3/Makefile
@@ -8,6 +8,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
@@ -60,6 +61,10 @@ post-extract:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
+pre-configure:
+ ${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ ${WRKSRC}/kdeprint/descriptions/Makefile.in
+
post-configure:
${REINPLACE_CMD} -e "s@^\s*Exec=.*\$$@Exec=ElectricEyes@" \
${WRKSRC}/kappfinder/apps/Graphics/ElectricEyes.desktop
diff --git a/x11/kdebase3/files/patch-kcontrol_konq_previews.cpp b/x11/kdebase3/files/patch-kcontrol_konq_previews.cpp
new file mode 100644
index 000000000000..7fe3246c2149
--- /dev/null
+++ b/x11/kdebase3/files/patch-kcontrol_konq_previews.cpp
@@ -0,0 +1,14 @@
+--- kcontrol/konq/previews.cpp.orig Sun Oct 26 11:46:25 2003
++++ kcontrol/konq/previews.cpp Thu Jan 27 10:16:32 2005
+@@ -153,6 +153,11 @@
+
+ for ( ; it.current() ; ++it ) {
+ QString protocol( it.current()->text() );
++ if ( ( protocol == "file" ) && ( !group.hasKey ( protocol ) ) )
++ // file should be enabled in case is not defined because if not so
++ // than preview's lost when size is changed from default one
++ it.current()->setOn( true );
++ else
+ it.current()->setOn( group.readBoolEntry( protocol, false ) );
+ }
+ // config key is in bytes (default value 1MB), numinput is in MB
diff --git a/x11/kdebase3/files/patch-kdeprint_descriptions_Makefile.in b/x11/kdebase3/files/patch-kdeprint_descriptions_Makefile.in
new file mode 100644
index 000000000000..5cf57be2d1c7
--- /dev/null
+++ b/x11/kdebase3/files/patch-kdeprint_descriptions_Makefile.in
@@ -0,0 +1,13 @@
+--- kdeprint/descriptions/Makefile.in.orig Wed Jan 26 12:17:44 2005
++++ kdeprint/descriptions/Makefile.in Wed Jan 26 12:19:25 2005
+@@ -773,8 +773,8 @@
+
+ printers.cpp: sortthem
+ : > printers.cpp
+- for i in `find /usr/share/cups/model -type f ! -name '*.gz'`; do perl $(srcdir)/readppd < $$i >> printers.cpp; done
+- for i in `find /usr/share/cups/model -type f -name '*.gz'`; do \
++ for i in `find %%LOCALBASE%%/share/cups/model -type f ! -name '*.gz'`; do perl $(srcdir)/readppd < $$i >> printers.cpp; done
++ for i in `find %%LOCALBASE%%/share/cups/model -type f -name '*.gz'`; do \
+ gzip -cd $$i | perl $(srcdir)/readppd >> printers.cpp; done
+ iconv -flatin1 -tutf-8 printers.cpp > printers.new
+ mv printers.new printers.cpp