summaryrefslogtreecommitdiffstats
path: root/debian/_base/applications
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-26 14:50:25 +0200
committerSlávek Banko <[email protected]>2020-05-26 15:06:00 +0200
commit273bb7f364bab6e758cdfc7ad11b778c629ba848 (patch)
tree039fb67c4dbff7180430d221f96033ff99b5c24b /debian/_base/applications
parent05af37f4381c51f07f5f91fac170fecbc386558d (diff)
downloadtde-packaging-273bb7f364bab6e758cdfc7ad11b778c629ba848.tar.gz
tde-packaging-273bb7f364bab6e758cdfc7ad11b778c629ba848.zip
DEB kscope: Switch to cmake.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 043013da1e53f52edc386c0dbbb8758690e779c6)
Diffstat (limited to 'debian/_base/applications')
-rw-r--r--debian/_base/applications/kscope/debian/control3
-rw-r--r--debian/_base/applications/kscope/debian/kscope.xml124
-rw-r--r--debian/_base/applications/kscope/debian/manpages1
-rwxr-xr-xdebian/_base/applications/kscope/debian/rules48
-rw-r--r--debian/_base/applications/kscope/debian/watch2
5 files changed, 13 insertions, 165 deletions
diff --git a/debian/_base/applications/kscope/debian/control b/debian/_base/applications/kscope/debian/control
index aec6b40e3..d691af356 100644
--- a/debian/_base/applications/kscope/debian/control
+++ b/debian/_base/applications/kscope/debian/control
@@ -4,8 +4,7 @@ Priority: optional
Maintainer: Timothy Pearson <[email protected]>
XSBC-Original-Maintainer: Debian KDE Extras Team <[email protected]>
Uploaders: Fathi Boudra <[email protected]>, Mark Purcell <[email protected]>
-Build-Depends: cdbs, debhelper (>= 9~), quilt, automake, libtool, bison, flex,
- tdebase-trinity-dev, docbook2x, docbook-xml
+Build-Depends: cdbs, debhelper (>= 9~), quilt, cmake, intltool, bison, flex, tdebase-trinity-dev
Standards-Version: 3.8.0
Homepage: http://kscope.sourceforge.net
Vcs-Browser: http://svn.debian.org/wsvn/pkg-kde/kde-extras/kscope/?op=log
diff --git a/debian/_base/applications/kscope/debian/kscope.xml b/debian/_base/applications/kscope/debian/kscope.xml
deleted file mode 100644
index a70b1be45..000000000
--- a/debian/_base/applications/kscope/debian/kscope.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-]>
-<refentry>
- <refentryinfo>
- <author>
- <firstname>Jonathan Patrick</firstname>
- <surname>Davies</surname>
- <email>[email protected]</email>
- </author>
- <copyright>
- <year>2006</year>
- <holder>Jonathan Patrick Davies</holder>
- </copyright>
- <!-- XXX IMPORTANT XXX -->
- <!-- Keep this date up to date: -->
- <date>2006-02-18</date>
- <!-- ^^^^^^^^^^ -->
- </refentryinfo>
- <refmeta>
- <refentrytitle>kscope</refentrytitle>
- <manvolnum>1</manvolnum>
- </refmeta>
- <refnamediv>
- <refname>kscope</refname>
- <refpurpose>a source browsing and editing environment</refpurpose>
- </refnamediv>
- <refsynopsisdiv>
- <cmdsynopsis>
- <command>kscope</command>
- <arg choice="opt">
- <option><replaceable>Qt-options</replaceable></option>
- </arg>
- <arg choice="opt">
- <option><replaceable>TDE-options</replaceable></option>
- </arg>
- </cmdsynopsis>
- </refsynopsisdiv>
- <refsect1>
- <title>DESCRIPTION</title>
- <para>
- KScope is a source browsing and editing environment for large projects written
- in C (such as the Linux kernel).
- </para>
- <para>
- KScope uses the Cscope code analysis engine to provide valuable information to
- coders.
- </para>
- <para>
- KScope also provides call-tree and call-graph views that can help developers
- by visualising the relationships between different functions in the code base.
- </para>
- </refsect1>
- <refsect1>
- <title>OPTIONS</title>
- <para>
- All <productname>TDE</productname> and <productname>Qt</productname>
- programs accept a some common command-line options. KScope has no
- application-specific options.
- </para>
- <para>
- <variablelist>
- <title>Generic options:</title>
- <varlistentry>
- <term> <option>--help</option> </term>
- <listitem> <para>Show help about options</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--help-qt</option> </term>
- <listitem> <para>Show Qt specific options</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--help-tde</option> </term>
- <listitem> <para>Show TDE specific options</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--help-all</option> </term>
- <listitem> <para>Show all options</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--author</option> </term>
- <listitem> <para>Show author information</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>-v</option>, <option>--version</option> </term>
- <listitem> <para>Show version information</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--license</option> </term>
- <listitem> <para>Show license information</para> </listitem>
- </varlistentry>
- <varlistentry>
- <term> <option>--</option> </term>
- <listitem> <para>Indicates end of options</para> </listitem>
- </varlistentry>
- </variablelist>
- <!-- TODO * add all the rest of the options, but maybe find an automated
- way to keep it up to date -->
- </para>
- </refsect1>
- <refsect1>
- <title>AUTHOR</title>
- <para>
- KScope was written by Elad Lahav <email>[email protected]</email>.
- </para>
- </refsect1>
- <refsect1>
- <title>COPYRIGHT</title>
- <para>
- This manual page was written by Jonathan Patrick Davies
- <email>[email protected]</email> for the
- <productname>Ubuntu</productname> system (but may be used by others).
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the <acronym>GNU</acronym> General Public License,
- Version 2 or any later version published by the Free Software Foundation.
- </para>
- <para>
- On Debian systems, the complete text of the GNU General Public
- License can be found in
- <filename>/usr/share/common-licenses/GPL</filename>.
- </para>
- </refsect1>
-</refentry>
diff --git a/debian/_base/applications/kscope/debian/manpages b/debian/_base/applications/kscope/debian/manpages
deleted file mode 100644
index 03ff43b50..000000000
--- a/debian/_base/applications/kscope/debian/manpages
+++ /dev/null
@@ -1 +0,0 @@
-kscope.1
diff --git a/debian/_base/applications/kscope/debian/rules b/debian/_base/applications/kscope/debian/rules
index 51dc02120..18aa16b96 100755
--- a/debian/_base/applications/kscope/debian/rules
+++ b/debian/_base/applications/kscope/debian/rules
@@ -1,43 +1,19 @@
#!/usr/bin/make -f
-
+
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
include debian/cdbs/debian-tde.mk
-DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include
-DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
-DEB_CONFIGURE_PREFIX := /opt/trinity
-DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
-
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
-post-patches:: debian/stamp-bootstrap
-
-debian/stamp-bootstrap:
- dh_testdir
-
- # Regenerate build system
-ifneq "$(wildcard /usr/share/libtool/ltmain.sh)" ""
- cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
-endif
-ifneq "$(wildcard /usr/share/libtool/config/ltmain.sh)" ""
- cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
-endif
-ifneq "$(wildcard /usr/share/libtool/build-aux/ltmain.sh)" ""
- cp -f /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
-endif
- cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
-
- autoreconf --install && automake -f && \
- $(MAKE) -f admin/Makefile.common && \
- touch debian/stamp-bootstrap
-
-build/kscope-trinity::
- /usr/bin/docbook2x-man debian/kscope.xml
-
-binary-install/kscope-trinity::
- mv debian/$(cdbs_curpkg)/usr/share/man debian/$(cdbs_curpkg)/opt/trinity/share/
-
-clean::
- rm -f kscope.1
- rm -f debian/stamp-bootstrap
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON"
diff --git a/debian/_base/applications/kscope/debian/watch b/debian/_base/applications/kscope/debian/watch
deleted file mode 100644
index 6825f61dd..000000000
--- a/debian/_base/applications/kscope/debian/watch
+++ /dev/null
@@ -1,2 +0,0 @@
-version=3
-http://sf.net/kscope/kscope-(.*)\.tar\.gz debian svn-upgrade