summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2016-11-26 06:25:49 -0200
committerIsmael Luceno2016-11-26 06:32:18 -0200
commit9f7358e79c15c7436cebb8f947c0bb4c663282cd (patch)
tree1d5f146925b68eff68867df241eb063434889448
parentd78e331659c4754483da89b229afc16a4ce50695 (diff)
utox: new spell, Lightweight Tox clientdevel-icedtea
-rw-r--r--ChangeLog1
-rwxr-xr-xchat-im/utox/BUILD1
-rwxr-xr-xchat-im/utox/DEPENDS8
-rwxr-xr-xchat-im/utox/DETAILS19
-rw-r--r--chat-im/utox/HISTORY3
-rwxr-xr-xchat-im/utox/PREPARE2
-rwxr-xr-xchat-im/utox/PRE_BUILD3
-rw-r--r--chat-im/utox/patches/0001-Fix-utox-target-installation-rule.patch38
8 files changed, 75 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b3fb4dde2..a3d36c07a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2016-11-26 Ismael Luceno <ismael@sourcemage.org>
* mobile/cpuspeed: new spell, Userspace cpufreq governor
+ * chat-im/utox: new spell, Lightweight Tox client
2016-11-25 Treeve Jelbert <treeve@sourcemage.org>
* qt5-cmake/scribus: added, qt5 version of scribus
diff --git a/chat-im/utox/BUILD b/chat-im/utox/BUILD
new file mode 100755
index 0000000000..e013b8d866
--- /dev/null
+++ b/chat-im/utox/BUILD
@@ -0,0 +1 @@
+cmake_build
diff --git a/chat-im/utox/DEPENDS b/chat-im/utox/DEPENDS
new file mode 100755
index 0000000000..a1a3b1034d
--- /dev/null
+++ b/chat-im/utox/DEPENDS
@@ -0,0 +1,8 @@
+depends c-toxcore &&
+depends fontconfig &&
+depends freetype2 &&
+depends libv4l &&
+depends libvpx &&
+depends libx11 &&
+depends libxext &&
+depends libxrender
diff --git a/chat-im/utox/DETAILS b/chat-im/utox/DETAILS
new file mode 100755
index 0000000000..5e25c6b34b
--- /dev/null
+++ b/chat-im/utox/DETAILS
@@ -0,0 +1,19 @@
+. "$GRIMOIRE"/FUNCTIONS
+ SPELL=utox
+ VERSION=$(get_scm_version)
+ SOURCE="uTox-scm.tar.bz2"
+ SOURCE_URL[0]=git://github.com/uTox/uTox.git::develop
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+# VERSION=0.9.8
+# SOURCE="uTox-$VERSION.tar.gz"
+# SOURCE_URL[0]=https://github.com/uTox/uTox/archive/v$VERSION.tar.gz
+# SOURCE_HASH=sha512:
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/uTox-$VERSION"
+ WEB_SITE="http://utox.org/"
+ LICENSE[0]="GPLv2"
+ ENTERED=20161123
+ KEYWORDS=""
+ SHORT="Lightweight Tox client"
+cat << EOF
+EOF
diff --git a/chat-im/utox/HISTORY b/chat-im/utox/HISTORY
new file mode 100644
index 0000000000..078e7dafb1
--- /dev/null
+++ b/chat-im/utox/HISTORY
@@ -0,0 +1,3 @@
+2016-11-23 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PREPARE, PRE_BUILD,
+ patches/0001-Fix-utox-target-installation-rule.patch: spell created
diff --git a/chat-im/utox/PREPARE b/chat-im/utox/PREPARE
new file mode 100755
index 0000000000..136a21830d
--- /dev/null
+++ b/chat-im/utox/PREPARE
@@ -0,0 +1,2 @@
+. "$GRIMOIRE"/FUNCTIONS &&
+prepare_select_branch
diff --git a/chat-im/utox/PRE_BUILD b/chat-im/utox/PRE_BUILD
new file mode 100755
index 0000000000..c230ad14bf
--- /dev/null
+++ b/chat-im/utox/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/chat-im/utox/patches/0001-Fix-utox-target-installation-rule.patch b/chat-im/utox/patches/0001-Fix-utox-target-installation-rule.patch
new file mode 100644
index 0000000000..20b56dde6d
--- /dev/null
+++ b/chat-im/utox/patches/0001-Fix-utox-target-installation-rule.patch
@@ -0,0 +1,38 @@
+From 01e97f0b9df9e6a1ad6a0a0320f7087c7b2a94e8 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael@iodev.co.uk>
+Date: Sat, 26 Nov 2016 05:23:46 -0200
+Subject: [PATCH] Fix utox target installation rule
+
+CMake install rules for files generated by the build process must specify
+they reference a target to be correctly looked up in the build directory,
+instead of the source directory.
+
+Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
+---
+ CMakeLists.txt | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 98824775c76d..380fa684f219 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -144,9 +144,6 @@ elseif(UNIX) # xlib by default
+ target_link_libraries(utoxNATIVE icon v4lconvert X11 Xext Xrender fontconfig freetype resolv dl )
+
+ install(FILES
+- utox
+- DESTINATION "bin")
+- install(FILES
+ src/utox.desktop
+ DESTINATION "share/applications")
+ install(FILES
+@@ -270,3 +267,6 @@ target_link_libraries(utox
+ sodium pthread m vpx )
+
+ set_property(TARGET utox PROPERTY C_STANDARD 99)
++if(UNIX)
++ install(TARGETS utox RUNTIME DESTINATION "bin")
++endif()
+--
+2.10.2
+