summaryrefslogtreecommitdiff
path: root/dev-embedded/cpik
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/cpik')
-rw-r--r--dev-embedded/cpik/Manifest4
-rw-r--r--dev-embedded/cpik/cpik-0.7.4_p4.ebuild46
-rw-r--r--dev-embedded/cpik/files/cpik-0.7.4_p4-gcc6.patch12
-rw-r--r--dev-embedded/cpik/metadata.xml15
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-embedded/cpik/Manifest b/dev-embedded/cpik/Manifest
new file mode 100644
index 000000000000..691bf6a74747
--- /dev/null
+++ b/dev-embedded/cpik/Manifest
@@ -0,0 +1,4 @@
+AUX cpik-0.7.4_p4-gcc6.patch 441 BLAKE2B d4d9b9688f343d167059080f669bc0b28fde8047df2138394a819165ec4cb2d81142bf6de9ef01a9e194504017f28925d2968b0baa8fdce58ca4b56ab21fdd49 SHA512 77413a7934676781d85475f44a65078fbe63c3736562f23ef190ac905c1231aba63b84d3a5d3786f02afb48f1e544517d6f5a0b6fa6a2fdae3649c221b3a57d5
+DIST cpik-0.7.4-4.tar.gz 8322003 BLAKE2B e88f04a92f44800139089b3115da42c5bbe88128300db28660b9300ae4260cba08432de0865d0426ce179743388483c9a3310c417bfaa3c7e4ef93217c38574b SHA512 d376af949bd2fbc80bd3c13e02d44c5a9ef82c409ac20e4c750fa77b654b89e77289b5a022988e05261cdbfe15563f837ec0e6382bb8bf27be673d0e55bbfa2c
+EBUILD cpik-0.7.4_p4.ebuild 849 BLAKE2B 0364da4bfc672403ef1f90dcd3dcca289b527092cc2f8827305065d14bb0d6d64dc9e113eca7b4f4dcc84c36a49ce954fca4842e85da66576ffebe97cc6c9b61 SHA512 75c8ed591db7b4b09b655cbb128446dce9a53a54040dcae95f8380abcb85d44bb271dd9601c4982dae1af3dff67a153f2276303dabc9807bad2f210055b4081a
+MISC metadata.xml 628 BLAKE2B 5c70cb2f1b0aa48950e961c9a6d26ce9b945da8631a237cadf8ae7702ab1c4f3d14c3ef72add54d42b412a330735d9994c6fdc73f0445c1813650f76f634fa2a SHA512 3fd531f77a31c0258a5d5ca2da9e6cd44fb84e05b2a8ffb91dfe86cb9274b9df20212b8a021ae873b32b92db410f6bd94684477080a3dcfd11a9e03f5b99bf71
diff --git a/dev-embedded/cpik/cpik-0.7.4_p4.ebuild b/dev-embedded/cpik/cpik-0.7.4_p4.ebuild
new file mode 100644
index 000000000000..376bf94a41fb
--- /dev/null
+++ b/dev-embedded/cpik/cpik-0.7.4_p4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_PV="${PV/_p/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="C compiler for PIC18 devices"
+HOMEPAGE="http://pikdev.free.fr/"
+SRC_URI="http://pikdev.free.fr/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:5"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( ${MY_PV/-*/}/doc/cpik-{0.5.2-tutorial,0.7.4-4-doc}.pdf )
+HTML_DOCS=( ${MY_PV/-*/}/doc/html/. )
+
+PATCHES=( "${FILESDIR}/${P}-gcc6.patch" )
+
+src_prepare() {
+ default
+
+ # does not install docs in wrong path
+ sed -e '/INSTALLS += docs/d' \
+ -i "${PN}"*.pro || die 'sed failed.'
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ dosym "${PN}-${MY_PV/-*/}" "/usr/bin/${PN}"
+}
diff --git a/dev-embedded/cpik/files/cpik-0.7.4_p4-gcc6.patch b/dev-embedded/cpik/files/cpik-0.7.4_p4-gcc6.patch
new file mode 100644
index 000000000000..c1f41cd7e6e0
--- /dev/null
+++ b/dev-embedded/cpik/files/cpik-0.7.4_p4-gcc6.patch
@@ -0,0 +1,12 @@
+diff -Naur cpik-0.7.2-4-orig/utility.h cpik-0.7.2-4/utility.h
+--- cpik-0.7.2-4-orig/utility.h 2017-12-03 03:47:35.302504007 +0100
++++ cpik-0.7.2-4/utility.h 2017-12-03 03:47:59.537116442 +0100
+@@ -75,7 +75,7 @@
+ static bool stringTo ( const string& s, T& result )
+ {
+ istringstream is ( s ) ;
+- return is >> result ;
++ return static_cast<bool>(is >> result);
+ }
+
+ /** generic conversion from T to string */
diff --git a/dev-embedded/cpik/metadata.xml b/dev-embedded/cpik/metadata.xml
new file mode 100644
index 000000000000..b8d0988614f8
--- /dev/null
+++ b/dev-embedded/cpik/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <longdescription lang="en">
+ CPIK (the C compiler for PIC18 devices) is released under the GPL licence.
+ CPIK is an easy to use, near ANSI C compiler which is fully integrated with
+ PikDev. This project is still in progress but near to be finished and the
+ current version is perfectly usable. (from Pikdev or from a command-line
+ interpreter).
+ </longdescription>
+</pkgmetadata>