diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-27 12:22:22 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-27 12:22:22 +0300 |
commit | 4b6fc29c5f14cf6f7efdcf580ec000dcab4845c1 (patch) | |
tree | d390cb5f007e37c2bc41525e924d48fed244f0ec | |
parent | b88c4442ed18fd9831865d966635be94fee1e6bf (diff) |
codeblocks added
-rw-r--r-- | packages/dev-util/codeblocks/codeblocks-17.12.exheres-0 | 9 | ||||
-rw-r--r-- | packages/dev-util/codeblocks/codeblocks-scm.exheres-0 | 18 | ||||
-rw-r--r-- | packages/dev-util/codeblocks/codeblocks.exlib | 62 |
3 files changed, 89 insertions, 0 deletions
diff --git a/packages/dev-util/codeblocks/codeblocks-17.12.exheres-0 b/packages/dev-util/codeblocks/codeblocks-17.12.exheres-0 new file mode 100644 index 0000000..4d0ed8b --- /dev/null +++ b/packages/dev-util/codeblocks/codeblocks-17.12.exheres-0 @@ -0,0 +1,9 @@ +# Copyright 2008-2016 Pierre Lejeune <superheron@gmail.com> +# Distributed under the terms of the GNU General Public License v2 + +require codeblocks + +PLATFORMS="~amd64" + +WORK="${WORKBASE}/${PNV}.release" + diff --git a/packages/dev-util/codeblocks/codeblocks-scm.exheres-0 b/packages/dev-util/codeblocks/codeblocks-scm.exheres-0 new file mode 100644 index 0000000..b14029e --- /dev/null +++ b/packages/dev-util/codeblocks/codeblocks-scm.exheres-0 @@ -0,0 +1,18 @@ +# Copyright 2008-2016 Pierre Lejeune <superheron@gmail.com> +# Distributed under the terms of the GNU General Public License v2 + +SCM_REPOSITORY="https://svn.code.sf.net/p/${PN}/code" +#SCM_SECONDARY_REPOSITORIES="FortranProject PythonPlugins wxCrafterCB" +#SCM_FortranProject_REPOSITORY="https://svn.code.sf.net/p/fortranproject/code" +#SCM_PythonPlugins_REPOSITORY="https://github.com/spillz/codeblocks-python" +#SCM_wxCrafterCB_REPOSITORY="https://github.com/eranif/wxCrafterCB" +#SCM_EXTERNAL_REFS=" +# src/plugins/contrib/FortranProject:FortranProject +# src/plugins/contrib/PythonPlugins:PythonPlugins +# src/plugins/contrib/wxCrafterCB:wxCrafterCB +#" + +require codeblocks scm-svn + +PLATFORMS="~amd64 ~x86" + diff --git a/packages/dev-util/codeblocks/codeblocks.exlib b/packages/dev-util/codeblocks/codeblocks.exlib new file mode 100644 index 0000000..1afda42 --- /dev/null +++ b/packages/dev-util/codeblocks/codeblocks.exlib @@ -0,0 +1,62 @@ +# Copyright 2008-2016 Pierre Lejeune <superheron@gmail.com> +# Distributed under the terms of the GNU General Public License v2 + +require sourceforge [ pnv="${PN}_${PV}" suffix='tar.xz' ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 1.12 1.11 1.10 ] ] +require freedesktop-desktop freedesktop-mime +export_exlib_phases src_prepare src_install pkg_postinst pkg_postrm + +SUMMARY="Code::Blocks C/C++ IDE" +DESCRIPTION="Code::Blocks free C/C++ IDE" +HOMEPAGE="http://www.codeblocks.org" + +LICENCES="GPL-3" +SLOT="0" +MYOPTIONS=" + contrib-plugins [[ description = [ Build community-contributed plugins ] ]] +" + +DEPENDENCIES=" + build: + app-arch/zip + virtual/pkg-config + build+run: + app-admin/gamin + app-spell/hunspell:= + dev-libs/boost + media-libs/fontconfig + x11-libs/wxGTK:=[>=2.8.12] +" + +DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'contrib-plugins' ) + +codeblocks_src_prepare() { + if ever at_least scm; then + edo chmod +x update_revision.sh + edo ./update_revision.sh + fi + + edo sed -e "s/pkg-config,/${PKG_CONFIG},/" -i configure.ac + + [[ -e "${WORK}/m4" ]] || edo mkdir "${WORK}/m4" + + autotools_src_prepare +} + +codeblocks_src_install() { + default + hereenvd 50codeblocks <<EOF +CODEBLOCKS_DATA_DIR="/usr" +EOF +} + +codeblocks_pkg_postinst() { + freedesktop-desktop_pkg_postinst + freedesktop-mime_pkg_postinst +} + +codeblocks_pkg_postrm() { + freedesktop-desktop_pkg_postrm + freedesktop-mime_pkg_postrm +} + |