Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 21:15:32 +0400
From:      Max Brazhnikov <makc@issp.ac.ru>
To:        Ion-Mihai Tetcu <itetcu@freebsd.org>
Cc:        freebsd-ports-bugs@freebsd.org
Subject:   Re: ports/113619: new port: emulators/qtemu
Message-ID:  <200706182115.32796.makc@issp.ac.ru>
In-Reply-To: <200706180609.l5I69YHe090300@freefall.freebsd.org>
References:  <200706180609.l5I69YHe090300@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_02rdGPQ9QY7EzFN
Content-Type: text/plain;
  charset="koi8-r"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Add forgotten qmake to dependencies.

--Boundary-00=_02rdGPQ9QY7EzFN
Content-Type: text/plain;
  charset="koi8-r";
  name="qtemu.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="qtemu.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	qtemu
#	qtemu/pkg-descr
#	qtemu/Makefile
#	qtemu/pkg-plist
#	qtemu/distinfo
#	qtemu/files
#	qtemu/files/patch-qtemu.pro
#	qtemu/files/patch-main.cpp
#	qtemu/files/patch-helpwindow.cpp
#
echo c - qtemu
mkdir -p qtemu > /dev/null 2>&1
echo x - qtemu/pkg-descr
sed 's/^X//' >qtemu/pkg-descr << 'END-of-qtemu/pkg-descr'
XQtEmu is a graphical user interface for QEMU written in Qt4.
X
XWWW:	http://qtemu.org/
END-of-qtemu/pkg-descr
echo x - qtemu/Makefile
sed 's/^X//' >qtemu/Makefile << 'END-of-qtemu/Makefile'
X# New ports collection makefile for:	qtemu
X# Date created:		2007-03-20
X# Whom:			Max Brazhnikov <makc@issp.ac.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qtemu
XPORTVERSION=	1.0.3
XCATEGORIES=	emulators
XMASTER_SITES=	SF
X
XMAINTAINER=	makc@issp.ac.ru
XCOMMENT=	A Qt4 front-end to Qemu
X
XWRKSRC=${WRKDIR}/${PORTNAME}
X
XUSE_BZIP2=	yes
XUSE_QT_VER=	4
XQT_COMPONENTS=	gui qmake xml uic moc
XHAS_CONFIGURE=	yes
XCONFIGURE_ENV+=	LOCALBASE=${LOCALBASE}
X
XDESKTOP_ENTRIES="QtEmu" "QEMU frontend" "" \
X		"qtemu" "" false
X
X.include <bsd.port.pre.mk>
X.if !defined(WITHOUT_NLS)
X#QT_COMPONENTS+=	linguist
XBUILD_DEPENDS+=	${LOCALBASE}/bin/lupdate-qt4:${PORTSDIR}/devel/qt4-linguist
XQTI_LANG=	cz de es ru tr
XPLIST_SUB+=	NLS=""
X.else
XPLIST_SUB+=	NLS="@comment "
X.endif
X
Xdo-configure:
X	(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE})
X
Xpost-configure:
X	@${REINPLACE_CMD} -e \
X		's|^CC .*|CC=${CC}|; \
X		 s|^CXX .*|CXX=${CXX}|; \
X		 s|^LINK .*|LINK=${CXX}|; \
X		 s|-pipe||; \
X		 s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
X		 s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
X		${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/qtemu ${PREFIX}/bin/qtemu
X.if !defined(WITHOUT_NLS)
X	${MKDIR} ${DATADIR}
X	(cd ${WRKSRC}/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
X.endif
X.if !defined(NOPORTDOCS)
X	(cd ${WRKSRC}/help/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
X.endif
X
X.include <bsd.port.post.mk>
END-of-qtemu/Makefile
echo x - qtemu/pkg-plist
sed 's/^X//' >qtemu/pkg-plist << 'END-of-qtemu/pkg-plist'
Xbin/qtemu
X%%PORTDOCS%%%%DOCSDIR%%/config.png
X%%PORTDOCS%%%%DOCSDIR%%/de/config.png
X%%PORTDOCS%%%%DOCSDIR%%/de/main.htm
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_1.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_2.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_3.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_4.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_5.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_6.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_7.png
X%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_8.png
X%%PORTDOCS%%%%DOCSDIR%%/de/toolbar.png
X%%PORTDOCS%%%%DOCSDIR%%/de/wizard_1.png
X%%PORTDOCS%%%%DOCSDIR%%/de/wizard_1_1.png
X%%PORTDOCS%%%%DOCSDIR%%/de/wizard_2.png
X%%PORTDOCS%%%%DOCSDIR%%/de/wizard_2_1.png
X%%PORTDOCS%%%%DOCSDIR%%/de/wizard_3.png
X%%PORTDOCS%%%%DOCSDIR%%/main.htm
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_1.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_2.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_3.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_4.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_5.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_6.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_7.png
X%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_8.png
X%%PORTDOCS%%%%DOCSDIR%%/toolbar.png
X%%PORTDOCS%%%%DOCSDIR%%/wizard_1.png
X%%PORTDOCS%%%%DOCSDIR%%/wizard_1_1.png
X%%PORTDOCS%%%%DOCSDIR%%/wizard_2.png
X%%PORTDOCS%%%%DOCSDIR%%/wizard_2_1.png
X%%PORTDOCS%%%%DOCSDIR%%/wizard_3.png
X%%NLS%%%%DATADIR%%/translations/qtiplot_cz.qm
X%%NLS%%%%DATADIR%%/translations/qtiplot_de.qm
X%%NLS%%%%DATADIR%%/translations/qtiplot_es.qm
X%%NLS%%%%DATADIR%%/translations/qtiplot_ru.qm
X%%NLS%%%%DATADIR%%/translations/qtiplot_tr.qm
X%%NLS%%@dirrm %%DATADIR%%/translations
X%%NLS%%@dirrm share/qtemu
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/de
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-qtemu/pkg-plist
echo x - qtemu/distinfo
sed 's/^X//' >qtemu/distinfo << 'END-of-qtemu/distinfo'
XMD5 (qtemu-1.0.3.tar.bz2) = 44560abe5b1df47f8ff6050d5864f453
XSHA256 (qtemu-1.0.3.tar.bz2) = b6db89fc88aced4453d17c0e52033846de72f36da16e9ff6659afb3397c959df
XSIZE (qtemu-1.0.3.tar.bz2) = 495051
END-of-qtemu/distinfo
echo c - qtemu/files
mkdir -p qtemu/files > /dev/null 2>&1
echo x - qtemu/files/patch-qtemu.pro
sed 's/^X//' >qtemu/files/patch-qtemu.pro << 'END-of-qtemu/files/patch-qtemu.pro'
X--- ./qtemu.pro.orig	Mon Mar 19 15:56:21 2007
X+++ ./qtemu.pro	Tue Jun 12 13:17:03 2007
X@@ -21,10 +21,12 @@
X   RC_FILE =     qtemu.rc
X }
X TEMPLATE =   app
X-TRANSLATIONS =   translations/template_qtemu.ts \
X-  translations/qtemu_de.ts \
X+TRANSLATIONS =   translations/qtemu_de.ts \
X   translations/qtemu_tr.ts \
X   translations/qtemu_ru.ts \
X   translations/qtemu_cz.ts \
X   translations/qtemu_es.ts
X-CONFIG +=   debug_and_release
X+CONFIG +=   release
X+
X+system($$(LOCALBASE)/bin/lupdate-qt4 -verbose qtemu.pro)
X+system($$(LOCALBASE)/bin/lrelease-qt4 -verbose qtemu.pro)
X\ No newline at end of file
END-of-qtemu/files/patch-qtemu.pro
echo x - qtemu/files/patch-main.cpp
sed 's/^X//' >qtemu/files/patch-main.cpp << 'END-of-qtemu/files/patch-main.cpp'
X--- ./main.cpp.orig	Mon Mar 19 15:56:21 2007
X+++ ./main.cpp	Tue Jun 12 13:17:03 2007
X@@ -45,7 +45,7 @@
X         translator.load(path);
X     else
X     {
X-        path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm";
X+        path = QCoreApplication::applicationDirPath()+"/../share/qtemu/translations/qtemu_" + locale + ".qm";
X         if (QFile::exists(path))
X             translator.load(path);
X     }
END-of-qtemu/files/patch-main.cpp
echo x - qtemu/files/patch-helpwindow.cpp
sed 's/^X//' >qtemu/files/patch-helpwindow.cpp << 'END-of-qtemu/files/patch-helpwindow.cpp'
X--- ./helpwindow.cpp.orig	Mon Mar 19 15:56:21 2007
X+++ ./helpwindow.cpp	Tue Jun 12 13:23:44 2007
X@@ -72,7 +72,7 @@
X             return testUrl;
X     
X         //check for case when qtemu executable is in bin/ (installed on linux)
X-        testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/" + locale + "/main.htm");
X+        testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/doc/qtemu/" + locale + "/main.htm");
X         if (QFile::exists(testUrl.toString()))
X             return testUrl;
X     }
X@@ -88,7 +88,7 @@
X         return testUrl;
X 
X     //check for case when qtemu executable is in bin/ (installed on linux)
X-    testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/main.htm");
X+    testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/doc/qtemu/main.htm");
X     if (QFile::exists(testUrl.toString()))
X         return testUrl;
X 
END-of-qtemu/files/patch-helpwindow.cpp
exit


--Boundary-00=_02rdGPQ9QY7EzFN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706182115.32796.makc>