diff options
author | gnn <gnn@FreeBSD.org> | 2013-08-18 01:37:03 +0800 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2013-08-18 01:37:03 +0800 |
commit | 93c0ed5c27ffb925e4dd611407c87169d186eb41 (patch) | |
tree | 2477e42341321e880269c94d3a8f7379730642cf /java | |
parent | 8e81e6cc49f278fee48ea38535d469244a5032d5 (diff) | |
download | freebsd-ports-gnome-93c0ed5c27ffb925e4dd611407c87169d186eb41.tar.gz freebsd-ports-gnome-93c0ed5c27ffb925e4dd611407c87169d186eb41.tar.zst freebsd-ports-gnome-93c0ed5c27ffb925e4dd611407c87169d186eb41.zip |
Apply a patch for a bug that effects the Keys preference, wherein
switching to and from Emacs and Default keybindings pollutes
both sets with duplicates.
Bump the port revision.
Diffstat (limited to 'java')
-rw-r--r-- | java/eclipse-devel/Makefile | 7 | ||||
-rw-r--r-- | java/eclipse-devel/files/BindingModel.java.patch | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/java/eclipse-devel/Makefile b/java/eclipse-devel/Makefile index f26091f1ddeb..3e72f9b716d7 100644 --- a/java/eclipse-devel/Makefile +++ b/java/eclipse-devel/Makefile @@ -3,7 +3,7 @@ PORTNAME= eclipse-devel PORTVERSION= 4.2.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= java devel MASTER_SITES= http://download.eclipse.org/technology/linuxtools/eclipse-build/4.2.x/:1 \ http://download.eclipse.org/tools/orbit/downloads/drops/R20120119162704/repository/plugins/:2 \ @@ -273,6 +273,11 @@ post-patch: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} applyTestPatches) .endif +pre-build: + @${CP} ${BUILD_WRKSRC}/build/eclipse-4.2.0-I20120608-1400-src/plugins/org.eclipse.ui.workbench/Eclipse\ UI/org/eclipse/ui/internal/keys/model/BindingModel.java ${PATCHDIR} + @${PATCH} -d ${PATCHDIR} -E -p0 -i ${PATCHDIR}/BindingModel.java.patch + @${CP} ${PATCHDIR}/BindingModel.java ${BUILD_WRKSRC}/build/eclipse-4.2.0-I20120608-1400-src/plugins/org.eclipse.ui.workbench/Eclipse\ UI/org/eclipse/ui/internal/keys/model/BindingModel.java + do-install: @${RM} -rf ${PORTDESTDIR} @${MKDIR} ${PORTDESTDIR} diff --git a/java/eclipse-devel/files/BindingModel.java.patch b/java/eclipse-devel/files/BindingModel.java.patch new file mode 100644 index 000000000000..534f7060a753 --- /dev/null +++ b/java/eclipse-devel/files/BindingModel.java.patch @@ -0,0 +1,14 @@ +--- BindingModel.java 2013-08-13 13:47:55.000000000 -0400 ++++ BindingModel.java 2013-08-13 13:48:48.000000000 -0400 +@@ -237,7 +237,10 @@ + if (obj instanceof Binding) { + Binding b = (Binding) obj; + if (!activeManagerBindings.contains(b)) { +- be.fill(b.getParameterizedCommand()); ++ ParameterizedCommand cmd = b.getParameterizedCommand(); ++ if (cmd != null) { ++ commandToElement.remove(cmd); ++ } + bindingToElement.remove(b); + i.remove(); + controller.firePropertyChange(this, PROP_BINDING_REMOVE, |