From 5c7171f11e298fc4d639bb75ff20e7aefe5e0dc8 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Mon, 18 Mar 2019 17:39:44 +0100
Subject: [PATCH] =?UTF-8?q?[wip/py-qt{=20=E2=86=92=204}-gepetto-pythonqt]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Makefile                                                   | 2 +-
 py-qt-gepetto-pythonqt/distinfo                            | 3 ---
 {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/DESCR  | 0
 .../Makefile                                               | 7 +++++--
 {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/PLIST  | 0
 .../depend.mk                                              | 0
 py-qt4-gepetto-pythonqt/distinfo                           | 3 +++
 7 files changed, 9 insertions(+), 6 deletions(-)
 delete mode 100644 py-qt-gepetto-pythonqt/distinfo
 rename {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/DESCR (100%)
 rename {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/Makefile (86%)
 rename {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/PLIST (100%)
 rename {py-qt-gepetto-pythonqt => py-qt4-gepetto-pythonqt}/depend.mk (100%)
 create mode 100644 py-qt4-gepetto-pythonqt/distinfo

diff --git a/Makefile b/Makefile
index 54d36fbc..134947f6 100644
--- a/Makefile
+++ b/Makefile
@@ -99,7 +99,7 @@ SUBDIR+=	py-morse
 SUBDIR+=	py-mraa
 SUBDIR+=	py-parametric-curves
 SUBDIR+=	py-qpoases
-SUBDIR+=	py-qt-gepetto-pythonqt
+SUBDIR+=	py-qt4-gepetto-pythonqt
 SUBDIR+=	py-sot-application-v3
 SUBDIR+=	py-sot-core-v3
 SUBDIR+=	py-sot-dynamic-pinocchio-v3
diff --git a/py-qt-gepetto-pythonqt/distinfo b/py-qt-gepetto-pythonqt/distinfo
deleted file mode 100644
index 5eada5e6..00000000
--- a/py-qt-gepetto-pythonqt/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-SHA1 (PythonQt-0.0.1.tar.gz) = 228b335475185ebca7acc3260b1bf7cd55bd4a08
-RMD160 (PythonQt-0.0.1.tar.gz) = 8a61461632944ff3eb4e7aeff9ed275b07cdf122
-Size (PythonQt-0.0.1.tar.gz) = 4600330 bytes
diff --git a/py-qt-gepetto-pythonqt/DESCR b/py-qt4-gepetto-pythonqt/DESCR
similarity index 100%
rename from py-qt-gepetto-pythonqt/DESCR
rename to py-qt4-gepetto-pythonqt/DESCR
diff --git a/py-qt-gepetto-pythonqt/Makefile b/py-qt4-gepetto-pythonqt/Makefile
similarity index 86%
rename from py-qt-gepetto-pythonqt/Makefile
rename to py-qt4-gepetto-pythonqt/Makefile
index f32e3881..e0a32dde 100644
--- a/py-qt-gepetto-pythonqt/Makefile
+++ b/py-qt4-gepetto-pythonqt/Makefile
@@ -5,10 +5,11 @@
 ORG=			gepetto
 NAME=			PythonQt
 VERSION=		0.0.1
-PKGREVISION=		1
+PKGREVISION=		2
 
-DISTNAME=		${NAME}-${VERSION}
+DISTNAME=		${NAME}-${PKG_ALTERNATIVE.qt}-${VERSION}
 PKGNAME=		${PKGTAG.python-}${PKGTAG.qt-}${ORG}-pythonqt-${VERSION}
+WRKSRC=			${WRKDIR}/${NAME}-${VERSION}
 
 HOMEPAGE=			${MASTER_SITE_GITHUB:=${ORG}/${NAME}}
 MASTER_SITES=		${MASTER_SITE_OPENROBOTS:=${NAME}/}
@@ -23,6 +24,8 @@ MAINTAINER=		gsaurel@laas.fr
 CMAKE_ARGS+=		-DPythonQt_Wrap_QtAll=ON
 CMAKE_ARGS+=		-DPythonQt_Extensions=ON
 
+DEPEND_ABI.qt=		qt>=4<5
+
 include ../../pkgtools/pkg-config/depend.mk
 include ../../mk/sysdep/cmake.mk
 include ../../mk/sysdep/python.mk
diff --git a/py-qt-gepetto-pythonqt/PLIST b/py-qt4-gepetto-pythonqt/PLIST
similarity index 100%
rename from py-qt-gepetto-pythonqt/PLIST
rename to py-qt4-gepetto-pythonqt/PLIST
diff --git a/py-qt-gepetto-pythonqt/depend.mk b/py-qt4-gepetto-pythonqt/depend.mk
similarity index 100%
rename from py-qt-gepetto-pythonqt/depend.mk
rename to py-qt4-gepetto-pythonqt/depend.mk
diff --git a/py-qt4-gepetto-pythonqt/distinfo b/py-qt4-gepetto-pythonqt/distinfo
new file mode 100644
index 00000000..11c9e163
--- /dev/null
+++ b/py-qt4-gepetto-pythonqt/distinfo
@@ -0,0 +1,3 @@
+SHA1 (PythonQt-qt4-0.0.1.tar.gz) = 228b335475185ebca7acc3260b1bf7cd55bd4a08
+RMD160 (PythonQt-qt4-0.0.1.tar.gz) = 8a61461632944ff3eb4e7aeff9ed275b07cdf122
+Size (PythonQt-qt4-0.0.1.tar.gz) = 4600330 bytes
-- 
GitLab