View | Details | Raw Unified | Return to bug 106535
Collapse All | Expand All

(-)/home/makc/porting/ports/math/qtiplot/Makefile (-18 / +56 lines)
Lines 6-37 Link Here
6
#
6
#
7
7
8
PORTNAME=	qtiplot
8
PORTNAME=	qtiplot
9
PORTVERSION=	0.8.7.3
9
PORTVERSION=	0.8.9.r2
10
CATEGORIES=	math science
10
CATEGORIES=	math science
11
MASTER_SITES=	http://soft.proindependent.com/src/
11
MASTER_SITES=	http://soft.proindependent.com/src/
12
DISTNAME=	${PORTNAME}-0.8.7-3
12
DISTNAME=	${PORTNAME}-0.8.9-rc2
13
13
14
MAINTAINER=	makc@issp.ac.ru
14
MAINTAINER=	makc@issp.ac.ru
15
COMMENT=	An Origin clone for data analysis and scientific plotting
15
COMMENT=	An Origin clone for data analysis and scientific plotting
16
16
17
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake \
17
BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
18
		sip:${PORTSDIR}/devel/py-sip \
19
		pylupdate:${PORTSDIR}/x11-toolkits/py-qt
20
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
18
LIB_DEPENDS=	gsl.9:${PORTSDIR}/math/gsl \
21
		origin.0:${PORTSDIR}/math/liborigin \
19
		origin.0:${PORTSDIR}/math/liborigin \
22
		qwtplot3d:${PORTSDIR}/math/qwtplot3d
20
		qwtplot3d:${PORTSDIR}/math/qwtplot3d \
23
RUN_DEPENDS=	pylupdate:${PORTSDIR}/x11-toolkits/py-qt
21
		qwt.5:${PORTSDIR}/x11-toolkits/qwt-devel
24
22
25
USE_BZIP2=	yes
23
USE_BZIP2=	yes
26
USE_GMAKE=	yes
24
USE_GMAKE=	yes
27
USE_PYTHON=	2.4
28
29
USE_DOS2UNIX=	qtiplot/src/application.cpp
30
31
USE_QT_VER=	3
25
USE_QT_VER=	3
32
MAKE_ENV=	QTDIR=${QT_PREFIX}
26
MAKE_ENV=	QTDIR=${QT_PREFIX}
33
27
34
OPTIONS=	DOCS "Install the QtiPlot Handbook" on
28
DESKTOP_ENTRIES="QtiPlot" "Data analysis and plotting" \
29
		"${DOCSDIR}/common/qtiplot_logo.png" \
30
		"qtiplot" "" false
31
32
OPTIONS=	DOCS "Install the QtiPlot Handbook" on \
33
		PYTHON "Python scripting support" off
35
34
36
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
37
36
Lines 39-44 Link Here
39
IGNORE=		does not compile on FreeBSD 4.x
38
IGNORE=		does not compile on FreeBSD 4.x
40
.endif
39
.endif
41
40
41
.if defined(WITH_PYTHON)
42
USE_PYTHON=	2.4
43
# manually include this, because USE_PYTHON is defined
44
# after including bsd.port.pre.mk
45
.include "${PORTSDIR}/Mk/bsd.python.mk"
46
BUILD_DEPENDS+=	sip:${PORTSDIR}/devel/py-sip \
47
		${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
48
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt
49
PLIST_SUB+=	PYTHON=""
50
.else
51
PLIST_SUB+=	PYTHON="@comment "
52
.endif
53
42
.if !defined(WITHOUT_DOCS)
54
.if !defined(WITHOUT_DOCS)
43
RUN_DEPENDS+=	qtiplot-doc>=0:${PORTSDIR}/math/qtiplot-doc
55
RUN_DEPENDS+=	qtiplot-doc>=0:${PORTSDIR}/math/qtiplot-doc
44
.endif
56
.endif
Lines 54-75 Link Here
54
QMAKESPEC=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
66
QMAKESPEC=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
55
67
56
QPRO_DIRS=	. \
68
QPRO_DIRS=	. \
57
		3rdparty/qwt \
58
		fitPlugins/fitRational0 \
69
		fitPlugins/fitRational0 \
59
		fitPlugins/fitRational1 \
70
		fitPlugins/fitRational1 \
60
		qtiplot
71
		qtiplot
61
72
62
post-patch:
73
post-patch:
63
.for d in ${QPRO_DIRS}
74
.if defined(WITH_PYTHON)
75
	@${REINPLACE_CMD} \
76
		-e "s:/usr/include/python2.4:${PYTHON_INCLUDEDIR}:" \
77
		-e "s:/usr/share/sip:${LOCALBASE}/share/py-sip/:" \
78
		${WRKSRC}/qtiplot/qtiplot.pro
64
	@${REINPLACE_CMD} -e \
79
	@${REINPLACE_CMD} -e \
65
		"s:../3rdparty/liborigin/include:${LOCALBASE}/include:" \
80
		's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
81
		${WRKSRC}/qtiplot/src/PythonScripting.cpp
82
.else
83
	@${REINPLACE_CMD} \
84
		-e "s/unix:SCRIPTING_LANGS += Python//" \
85
		${WRKSRC}/qtiplot/qtiplot.pro
86
.endif
87
88
.for d in ${QPRO_DIRS}
89
	@${REINPLACE_CMD} \
90
		-e "s/#system/system/g" \
91
		-e "s:../3rdparty/liborigin:${LOCALBASE}/include:" \
92
		-e "s:../3rdparty/qwt/include:${LOCALBASE}/include/qwt:" \
66
		-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \
93
		-e "s:/usr/include/qwtplot3d:${X11BASE}/include:" \
67
		-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \
94
		-e "/^unix:LIBS/s:-L /usr/lib:-L${LOCALBASE}/lib:" \
68
		-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DATADIR}/manual:" \
95
		-e "/^unix:documentation.path/s:/usr/share/doc/qtiplot:${DATADIR}/manual:" \
69
		-e "s:/usr/include/python2.4:/usr/local/include/python2.4:" \
70
		-e "s:/usr/share/sip:/usr/local/share/py-sip/:" \
71
		${WRKSRC}/${d}/*.pro
96
		${WRKSRC}/${d}/*.pro
72
.endfor
97
.endfor
98
	@${REINPLACE_CMD} -e "s:3rdparty/qwt::" ${WRKSRC}/qtiplot.pro
99
	@${REINPLACE_CMD} -e 's:"/usr/share/doc/qtiplot:"${DOCSDIR}:' \
100
		${WRKSRC}/qtiplot/src/application.cpp
73
101
74
do-configure:
102
do-configure:
75
.for d in ${QPRO_DIRS}
103
.for d in ${QPRO_DIRS}
Lines 84-90 Link Here
84
		 s|^CXX .*|CXX=${CXX}|; \
112
		 s|^CXX .*|CXX=${CXX}|; \
85
		 s|-pipe||; \
113
		 s|-pipe||; \
86
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
114
		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
87
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
115
		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|; \
116
		 s|../3rdparty/qwt/lib/libqwt.a|-lqwt|' \
88
		${WRKSRC}/${d}/Makefile
117
		${WRKSRC}/${d}/Makefile
89
.endfor
118
.endfor
90
119
Lines 92-98 Link Here
92
	${MKDIR} ${DATADIR}
121
	${MKDIR} ${DATADIR}
93
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot
122
	${INSTALL_PROGRAM} ${WRKSRC}/qtiplot/qtiplot ${DATADIR}/qtiplot
94
	${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot
123
	${LN} -fs ${DATADIR}/qtiplot ${PREFIX}/bin/qtiplot
124
	${MKDIR} ${DATADIR}/fitPlugins
125
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational0.so.1.0.0 \
126
				${DATADIR}/fitPlugins/libfitRational0.so
127
	${INSTALL_PROGRAM} ${WRKSRC}/fitPlugins/libfitRational1.so.1.0.0 \
128
				${DATADIR}/fitPlugins/libfitRational1.so
129
.if defined(WITH_PYTHON)
95
	${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.py ${DATADIR}/qtiplotrc.py
130
	${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.py ${DATADIR}/qtiplotrc.py
131
	@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')"
132
	${INSTALL_DATA} ${WRKSRC}/qtiplot/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc
133
.endif
96
.if !defined(WITHOUT_NLS)
134
.if !defined(WITHOUT_NLS)
97
.for i in ${QTI_LANG}
135
.for i in ${QTI_LANG}
98
	${MKDIR} ${DATADIR}/translations/
136
	${MKDIR} ${DATADIR}/translations/
(-)/home/makc/porting/ports/math/qtiplot/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qtiplot-0.8.7-3.tar.bz2) = 85b91966ebe206e1cfb990890252abde
1
MD5 (qtiplot-0.8.9-rc2.tar.bz2) = fdf3996b4361c83c7e86ae4d8176bc04
2
SHA256 (qtiplot-0.8.7-3.tar.bz2) = 27c1229e6bbd1982b4bfd5c9dbd883b494a3fedd3a8fca71d20add5175d57538
2
SHA256 (qtiplot-0.8.9-rc2.tar.bz2) = efc9090413e4d446b8eed2182f9fe956406d24e92e82a51396a400eee8ba8765
3
SIZE (qtiplot-0.8.7-3.tar.bz2) = 741895
3
SIZE (qtiplot-0.8.9-rc2.tar.bz2) = 598479
(-)/home/makc/porting/ports/math/qtiplot/files/patch-qtiplot_src_application.cpp (-11 lines)
Lines 1-11 Link Here
1
--- qtiplot/src/application.cpp.orig	Wed Sep  6 01:26:14 2006
2
+++ qtiplot/src/application.cpp	Fri Sep  8 22:21:43 2006
3
@@ -4240,7 +4240,7 @@
4
 		workingDir = settings.readEntry("/WorkingDir", qApp->applicationDirPath());
5
 		templatesDir = settings.readEntry("/TemplatesDir", qApp->applicationDirPath());
6
 
7
-		helpFilePath="/usr/share/doc/qtiplot/index.html";
8
+		helpFilePath=qApp->applicationDirPath()+"/manual/index.html";
9
 		#ifdef Q_OS_WIN // Windows systems
10
 			helpFilePath=qApp->applicationDirPath()+"/index.html";
11
 		#endif
(-)/home/makc/porting/ports/math/qtiplot/pkg-plist (-1 / +5 lines)
Lines 1-10 Link Here
1
bin/qtiplot
1
bin/qtiplot
2
%%DATADIR%%/fitPlugins/libfitRational0.so
3
%%DATADIR%%/fitPlugins/libfitRational1.so
2
%%DATADIR%%/qtiplot
4
%%DATADIR%%/qtiplot
3
%%DATADIR%%/qtiplotrc.py
5
%%PYTHON%%%%DATADIR%%/qtiplotrc.py
6
%%PYTHON%%%%DATADIR%%/qtiplotrc.pyc
4
%%NLS%%%%DATADIR%%/translations/qtiplot_de.qm
7
%%NLS%%%%DATADIR%%/translations/qtiplot_de.qm
5
%%NLS%%%%DATADIR%%/translations/qtiplot_es.qm
8
%%NLS%%%%DATADIR%%/translations/qtiplot_es.qm
6
%%NLS%%%%DATADIR%%/translations/qtiplot_fr.qm
9
%%NLS%%%%DATADIR%%/translations/qtiplot_fr.qm
7
%%NLS%%%%DATADIR%%/translations/qtiplot_ru.qm
10
%%NLS%%%%DATADIR%%/translations/qtiplot_ru.qm
8
%%NLS%%%%DATADIR%%/translations/qtiplot_sv.qm
11
%%NLS%%%%DATADIR%%/translations/qtiplot_sv.qm
9
%%NLS%%@dirrm %%DATADIR%%/translations
12
%%NLS%%@dirrm %%DATADIR%%/translations
13
@dirrm %%DATADIR%%/fitPlugins
10
@dirrmtry %%DATADIR%%
14
@dirrmtry %%DATADIR%%

Return to bug 106535