View | Details | Raw Unified | Return to bug 184859 | Differences between
and this patch

Collapse All | Expand All

(-)x11-wm/ede/Makefile (-18 / +28 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ede
4
PORTNAME=	ede
5
PORTVERSION=	2.0
5
PORTVERSION=	2.0
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	x11-wm
7
CATEGORIES=	x11-wm
8
MASTER_SITES=	SF \
8
MASTER_SITES=	SF \
9
		SF/${PORTNAME}/${PORTNAME}lib/${PORTVERSION}:edelib
9
		SF/${PORTNAME}/${PORTNAME}lib/${PORTVERSION}:edelib
Lines 16-36 Link Here
16
LICENSE=	GPLv2 LGPL20
16
LICENSE=	GPLv2 LGPL20
17
LICENSE_COMB=	multi
17
LICENSE_COMB=	multi
18
18
19
BUILD_DEPENDS=	python:${PORTSDIR}/lang/python \
19
BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen \
20
		doxygen:${PORTSDIR}/devel/doxygen \
21
		jam:${PORTSDIR}/devel/jam \
20
		jam:${PORTSDIR}/devel/jam \
22
		update-mime-database:${PORTSDIR}/misc/shared-mime-info
21
		python:${PORTSDIR}/lang/python
23
LIB_DEPENDS=	dbus-1.3:${PORTSDIR}/devel/dbus \
22
LIB_DEPENDS=	libdbus-1.so:${PORTSDIR}/devel/dbus \
24
		curl:${PORTSDIR}/ftp/curl \
23
		libcurl.so:${PORTSDIR}/ftp/curl \
25
		startup-notification-1.0:${PORTSDIR}/x11/startup-notification \
24
		libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification \
26
		fltk.1:${PORTSDIR}/x11-toolkits/fltk
25
		libfltk.so:${PORTSDIR}/x11-toolkits/fltk
27
RUN_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info
28
26
29
OPTIONS_DEFINE=	HAL
27
OPTIONS_DEFINE=	HAL
30
HAL_DESC=	Enable HAL support
28
HAL_DESC=	Enable HAL support
31
29
30
USES=		fam iconv gettext pathfix pkgconfig shared-mime-info
32
USE_XORG=	xcomposite xft xinerama xpm xrandr
31
USE_XORG=	xcomposite xft xinerama xpm xrandr
33
USES=		fam gettext pathfix pkgconfig
34
USE_PYTHON=	yes
32
USE_PYTHON=	yes
35
GNU_CONFIGURE=	yes
33
GNU_CONFIGURE=	yes
36
CONFIGURE_ARGS=	--with-edelib_path=${EDELIB_WRKSRC} \
34
CONFIGURE_ARGS=	--with-edelib_path=${EDELIB_WRKSRC} \
Lines 52-66 Link Here
52
HAL_LIB_DEPENDS=	libhal.so.1:${PORTSDIR}/sysutils/hal
50
HAL_LIB_DEPENDS=	libhal.so.1:${PORTSDIR}/sysutils/hal
53
HAL_CONFIGURE_OFF=	--disable-hal
51
HAL_CONFIGURE_OFF=	--disable-hal
54
52
55
# use multiple make jobs
56
_make_jobs=	-j${MAKE_JOBS_NUMBER}
57
58
NO_STAGE=	yes
59
post-patch:
53
post-patch:
60
	@${REINPLACE_CMD} -e \
54
	@${REINPLACE_CMD} -e \
61
		's|/usr/local/share|${LOCALBASE}/share| ; \
55
		's|/usr/local/share|${LOCALBASE}/share| ; \
62
		 /OPTIM_FLAGS=/s|-O2|-fPIC| ; \
56
		 /OPTIM_FLAGS=/s|-O2|-fPIC| ; \
63
		 s|_daylight=yes|_daylight=no|' ${EDELIB_WRKSRC}/configure
57
		 s|_daylight=yes|_daylight=no|' ${EDELIB_WRKSRC}/configure
58
	@${REINPLACE_CMD} -e \
59
		's| -liconv| ${ICONV_LIB}|' ${WRKSRC}/configure
60
	@${REINPLACE_CMD} -e \
61
		's|$$(CC)|@CXX@| ; \
62
		 s|-lstdc++||' ${WRKSRC}/Jamconfig.in
64
63
65
pre-configure:
64
pre-configure:
66
	@(cd ${EDELIB_WRKSRC} \
65
	@(cd ${EDELIB_WRKSRC} \
Lines 74-87 Link Here
74
73
75
pre-build:
74
pre-build:
76
	@(cd ${EDELIB_WRKSRC} \
75
	@(cd ${EDELIB_WRKSRC} \
77
		&& ${LOCALBASE}/bin/jam ${_make_jobs} \
76
		&& ${LOCALBASE}/bin/jam -j${MAKE_JOBS_NUMBER} \
78
		&& ${LOCALBASE}/bin/jam ${INSTALL_TARGET})
77
		&& ${LOCALBASE}/bin/jam ${INSTALL_TARGET})
79
78
80
do-build:
79
do-build:
81
	@(cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam ${_make_jobs})
80
	@(cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam -j${MAKE_JOBS_NUMBER})
82
81
83
do-install:
82
do-install:
84
	@(cd ${INSTALL_WRKSRC} && ${LOCALBASE}/bin/jam ${INSTALL_TARGET})
83
	@(cd ${INSTALL_WRKSRC} && ${SETENV} DESTDIR="${STAGEDIR}" \
85
	@-update-mime-database ${PREFIX}/share/mime
84
		${LOCALBASE}/bin/jam ${INSTALL_TARGET})
85
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ede-2.0.0/manual/images
86
	@(cd ${WRKSRC}/doc/manual/images && ${COPYTREE_SHARE} . \
87
		${STAGEDIR}${PREFIX}/share/doc/ede-2.0.0/manual/images)
88
.for i in ede-about ede-autostart ede-bell-conf ede-bug-report ede-crasher \
89
	ede-calc ede-conf ede-desktop ede-desktop-conf ede-dialog \
90
	ede-keyboard-conf ede-notify-daemon ede-screensaver-conf \
91
	ede-image-view ede-launch emountd ede-timedate ede-tip \
92
	ede-tip-compiler ede-preferred-applications evoke ede-shutdown \
93
	ede-panel ede-menu-spec-test pekwm
94
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
95
.endfor
86
96
87
.include <bsd.port.mk>
97
.include <bsd.port.mk>
(-)x11-wm/ede/files/patch-pekwm__Observabe.cc (+50 lines)
Line 0 Link Here
1
--- pekwm/Observable.cc.orig
2
+++ pekwm/Observable.cc
3
@@ -10,10 +10,12 @@
4
 #include "config.h"
5
 #endif // HAVE_CONFIG_H
6
 
7
+#include <algorithm>
8
+
9
 #include "Observable.hh"
10
 #include "Observer.hh"
11
 
12
-using SLIST_NAMESPACE::slist;
13
+using std::vector;
14
 
15
 /**
16
  * Notify all observers.
17
@@ -21,11 +23,10 @@
18
 void
19
 Observable::notifyObservers(Observation *observation)
20
 {
21
-    if (_observers.size()) {
22
-        slist<Observer*>::iterator it(_observers.begin());
23
-        for (; it != _observers.end(); ++it) {
24
-            (*it)->notify(this, observation);
25
-        }
26
+    vector<Observer*>::const_iterator it(_observers.begin());
27
+    vector<Observer*>::const_iterator end(_observers.end());
28
+    for (; it != end; ++it) {
29
+        (*it)->notify(this, observation);
30
     }
31
 }
32
 
33
@@ -35,7 +36,7 @@
34
 void
35
 Observable::addObserver(Observer *observer)
36
 {
37
-    _observers.push_front(observer);
38
+    _observers.push_back(observer);
39
 }
40
 
41
 /**
42
@@ -44,7 +45,5 @@
43
 void
44
 Observable::removeObserver(Observer *observer)
45
 {
46
-    if (_observers.size()) {
47
-        _observers.remove(observer);
48
-    }
49
+    _observers.erase(std::remove(_observers.begin(), _observers.end(), observer), _observers.end());
50
 }
(-)x11-wm/ede/files/patch-pekwm__Observabe.hh (+24 lines)
Line 0 Link Here
1
--- pekwm/Observable.hh.orig
2
+++ pekwm/Observable.hh
3
@@ -9,11 +9,7 @@
4
 #ifndef _OBSERVABLE_HH_
5
 #define _OBSERVABLE_HH_
6
 
7
-#ifdef HAVE_SLIST
8
-#include <slist>
9
-#else // HAVE_EXT_SLIST
10
-#include <ext/slist>
11
-#endif // HAVE_SLIST
12
+#include <vector>
13
 
14
 class Observer;
15
 
16
@@ -36,7 +32,7 @@
17
     void removeObserver(Observer *observer); 
18
 
19
 private:
20
-    SLIST_NAMESPACE::slist<Observer*> _observers; /**< List of observers. */
21
+    std::vector<Observer*> _observers; /**< List of observers. */
22
 };
23
 
24
 #endif // _OBSERVABLE_HH_
(-)x11-wm/ede/pkg-plist (-2 lines)
Lines 1555-1559 Link Here
1555
@dirrm etc/xdg/ede
1555
@dirrm etc/xdg/ede
1556
@dirrmtry etc/xdg
1556
@dirrmtry etc/xdg
1557
@dirrm etc/pekwm
1557
@dirrm etc/pekwm
1558
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
1559
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime

Return to bug 184859