From owner-svn-ports-head@freebsd.org Mon Oct 15 14:55:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11F4B10DD9CF; Mon, 15 Oct 2018 14:55:02 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCF32774D4; Mon, 15 Oct 2018 14:55:01 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D715B6B3C; Mon, 15 Oct 2018 14:55:01 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9FEt1uC006199; Mon, 15 Oct 2018 14:55:01 GMT (envelope-from jsm@FreeBSD.org) Received: (from jsm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9FEt0Iw006193; Mon, 15 Oct 2018 14:55:00 GMT (envelope-from jsm@FreeBSD.org) Message-Id: <201810151455.w9FEt0Iw006193@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jsm set sender to jsm@FreeBSD.org using -f From: Jesper Schmitz Mouridsen Date: Mon, 15 Oct 2018 14:55:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482157 - in head/x11-wm: . obconf-qt obconf-qt/files X-SVN-Group: ports-head X-SVN-Commit-Author: jsm X-SVN-Commit-Paths: in head/x11-wm: . obconf-qt obconf-qt/files X-SVN-Commit-Revision: 482157 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 14:55:02 -0000 Author: jsm Date: Mon Oct 15 14:55:00 2018 New Revision: 482157 URL: https://svnweb.freebsd.org/changeset/ports/482157 Log: New port x11-wm/obconf-qt PR: 229306 Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D17261 Added: head/x11-wm/obconf-qt/ head/x11-wm/obconf-qt/Makefile (contents, props changed) head/x11-wm/obconf-qt/distinfo (contents, props changed) head/x11-wm/obconf-qt/files/ head/x11-wm/obconf-qt/files/patch-src_CMakeLists.txt (contents, props changed) head/x11-wm/obconf-qt/files/patch-src_archive.cpp (contents, props changed) head/x11-wm/obconf-qt/files/patch-src_theme.cpp (contents, props changed) head/x11-wm/obconf-qt/pkg-descr (contents, props changed) Modified: head/x11-wm/Makefile Modified: head/x11-wm/Makefile ============================================================================== --- head/x11-wm/Makefile Mon Oct 15 13:43:56 2018 (r482156) +++ head/x11-wm/Makefile Mon Oct 15 14:55:00 2018 (r482157) @@ -85,6 +85,7 @@ SUBDIR += nickleby SUBDIR += obapps SUBDIR += obconf + SUBDIR += obconf-qt SUBDIR += obkey SUBDIR += obmenu SUBDIR += obpager Added: head/x11-wm/obconf-qt/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/Makefile Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,35 @@ +# Created by: Olivier Duchateau +# $FreeBSD$ + +PORTNAME= obconf-qt +PORTVERSION= 0.13.0 +CATEGORIES= x11-wm +MASTER_SITES= LXQT/${PORTNAME} + +MAINTAINER= jsm@FreeBSD.org +COMMENT= Qt port of preferences manager for Openbox + +LICENSE= GPLv2 + +LIB_DEPENDS= libobt.so:x11-wm/openbox \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libImlib2.so:graphics/imlib2 + +USES= cmake:outsource compiler:c++11-lang gettext-runtime localbase qt:5 \ + gnome lxqt pkgconfig tar:xz + +USE_QT= buildtools_build qmake_build core gui linguisttools \ + widgets x11extras + +USE_LXQT= buildtools + +USE_GNOME= glib20 pango librsvg2 gdkpixbuf2 libxml2 cairo + +USE_XORG= ice sm x11 xft + +PLIST_FILES= bin/obconf-qt \ + share/applications/obconf-qt.desktop \ + share/icons/hicolor/48x48/apps/obconf-qt.png + +.include Added: head/x11-wm/obconf-qt/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/distinfo Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,3 @@ +TIMESTAMP = 1527328597 +SHA256 (lxqt/obconf-qt-0.13.0.tar.xz) = cec24a319ad87c6c04459c66ad9d14f0ce9d6b0cad6eb5584376b72a6eb07fb9 +SIZE (lxqt/obconf-qt-0.13.0.tar.xz) = 34348 Added: head/x11-wm/obconf-qt/files/patch-src_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/files/patch-src_CMakeLists.txt Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,11 @@ +--- src/CMakeLists.txt.orig 2018-05-21 17:40:12 UTC ++++ src/CMakeLists.txt +@@ -108,7 +108,7 @@ endif() + + target_link_libraries(obconf-qt + ${QTX_LIBRARIES} +- ${GLIB_LIBRARIES} ++ ${GLIB_LDFLAGS} + ${OPENBOX_LIBRARIES} + ) + Added: head/x11-wm/obconf-qt/files/patch-src_archive.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/files/patch-src_archive.cpp Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,35 @@ +--- src/archive.cpp.orig 2015-02-25 14:12:33 UTC ++++ src/archive.cpp +@@ -1,4 +1,5 @@ + #include ++#include + + #include + #include +@@ -161,6 +162,7 @@ static gchar* install_theme_to(const gch + GError *e = NULL; + gchar *name = NULL; + ++#if defined(Q_OS_LINUX) + argv = g_new(gchar*, 11); + argv[0] = g_strdup("tar"); + argv[1] = g_strdup("-x"); +@@ -173,6 +175,18 @@ static gchar* install_theme_to(const gch + argv[8] = g_strdup(to); + argv[9] = g_strdup("*/openbox-3/"); + argv[10] = NULL; ++#else ++ argv = g_new(gchar*, 9); ++ argv[0] = g_strdup("tar"); ++ argv[1] = g_strdup("-x"); ++ argv[2] = g_strdup("-v"); ++ argv[3] = g_strdup("-z"); ++ argv[4] = g_strdup("-f"); ++ argv[5] = g_strdup(file); ++ argv[6] = g_strdup("-C"); ++ argv[7] = g_strdup(to); ++ argv[8] = NULL; ++#endif + if (!g_spawn_sync(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, + &outtxt, &errtxt, &exitcode, &e)) + QMessageBox::critical(NULL, QString(), QObject::tr("Unable to run the \"tar\" command: %1") Added: head/x11-wm/obconf-qt/files/patch-src_theme.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/files/patch-src_theme.cpp Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,18 @@ +--- src/theme.cpp.orig 2018-09-20 14:07:09 UTC ++++ src/theme.cpp +@@ -156,10 +156,11 @@ void MainDialog::on_install_theme_clicke + } + + void MainDialog::on_theme_archive_clicked() { +- QString filename = QFileDialog::getSaveFileName(this, +- tr("Choose an Openbox theme"), +- QString(), +- "Openbox theme archives (*.obt);;"); ++ QFileDialog* dialog = new QFileDialog(); ++ dialog->setFileMode(QFileDialog::Directory); ++ QString filename=""; ++ if(dialog->exec()) ++ filename= dialog->selectedFiles()[0]; + if(!filename.isEmpty()) { + archive_create(filename.toLocal8Bit().constData()); + } Added: head/x11-wm/obconf-qt/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/obconf-qt/pkg-descr Mon Oct 15 14:55:00 2018 (r482157) @@ -0,0 +1,5 @@ +ObConf-Qt is a Qt port of ObConf, a configuration editor for OpenBox. +It allows you to edit and choose theme, and to edit window manager preferences +such as mouse focus behaviour, font-settings and number of virtual desktops. + +WWW: https://github.com/lxqt/obconf-qt