Request 3278 (accepted)
No description set
Submit package home:nephros:devel:vim / cscope to package sailfishos:chum:testing / cscope
[-] [+] | Added | cscope.spec |
[-] [+] | Added | cscope-15.7a-ocs-sysdir.patch ^ |
@@ -0,0 +1,23 @@ +http://bugs.gentoo.org/269305 + +--- cscope-15.7a-orig/contrib/ocs 2004-06-21 20:13:22.000000000 +0200 ++++ cscope-15.7a/contrib/ocs 2009-05-11 22:33:51.000000000 +0200 +@@ -75,17 +75,10 @@ + + #set the default value for SYSDIR + if [ -z "${SYSDIR}" ]; then +- SYSDIR=/usr/local/lib/cs ++ SYSDIR=/var/lib/cs + echo setting default sysdir + fi + +-#check that SYSDIR exists +-if [ ! -d ${SYSDIR} ]; then +- echo -n $SYSDIR does not exist. +- echo Please create the directory and set SYSDIR appropriately +- exit +-fi +- + # Check that cscope is in PATH + type cscope 1>/dev/null 2>&1 + | ||
[-] [+] | Added | cscope-15.9-emacs-27.patch ^ |
@@ -0,0 +1,28 @@ +https://bugs.gentoo.org/892071 + +commit eaea31cb93ecddda69a373f83f632e1a450c3c90 +Author: Brock Zheng Techyauld Ltd <yzheng@techyauld.com> +Date: Tue Aug 25 20:28:11 2020 +0800 + + emacs plugin fixup: GNU/Emacs 27.1 removes function process-kill-without-query + +--- a/contrib/xcscope/xcscope.el ++++ b/contrib/xcscope/xcscope.el +@@ -2006,7 +2006,7 @@ + (set-process-filter cscope-process cscope-filter-func) + (set-process-sentinel cscope-process cscope-sentinel-func) + (set-marker (process-mark cscope-process) (point)) +- (process-kill-without-query cscope-process) ++ (set-process-query-on-exit-flag cscope-process nil) + (if cscope-running-in-xemacs + (setq modeline-process ": Searching ...")) + (setq buffer-read-only t) +@@ -2139,7 +2139,7 @@ + cscope-indexing-script args)) + (set-process-sentinel cscope-unix-index-process + 'cscope-unix-index-files-sentinel) +- (process-kill-without-query cscope-unix-index-process) ++ (set-process-query-on-exit-flag cscope-unix-index-process nil) + ) + )) + | ||
[-] [+] | Added | cscope-15.9-pkgconfig.patch ^ |
@@ -0,0 +1,28 @@ +--- a/configure.in ++++ b/configure.in +@@ -18,6 +18,7 @@ if test "x$LEX" = "xlex" ; then AC_DEFINE(USING_LEX, 1, + [Define this if the scanner is run through lex, not flex]) + fi + AC_PROG_YACC ++PKG_PROG_PKG_CONFIG + + AC_SYS_LARGEFILE + +@@ -361,7 +362,7 @@ dnl Check for a GNOME installation + AC_DEFUN([AC_CHECK_GNOME],[ + has_gnome=false + AC_CHECK_PROG(gnome1, gnome-config, true) +- AC_CHECK_PROG(gnome2, pkg-config, true) ++ AC_CHECK_PROG(gnome2, $PKG_CONFIG, true) + + if test x$gnome1 = xtrue; then + has_gnome=true +@@ -371,7 +372,7 @@ AC_DEFUN([AC_CHECK_GNOME],[ + has_gnome=true + fi + +- AM_CONDITIONAL(USING_GNOME2, pkg-config --exists gtk+-2.0) ++ AM_CONDITIONAL(USING_GNOME2, $PKG_CONFIG --exists gtk+-2.0) + AM_CONDITIONAL(HAS_GNOME, test "$has_gnome" = true) + AM_CONDITIONAL(GNOME_LINUX, test "$host_os" = Linux) + ]) | ||
Added | cscope-15.9.tar.gz ^ | |
[-] [+] | Added | cscope-rpmlintrc ^ |
@@ -0,0 +1,5 @@ +from Config import * +addFilter("summary-too-long") +addFilter("description-line-too-long") +addFilter("no-changelogname-tag") +addFilter("invalid-url") | ||
[-] [+] | Added | cscope.yaml ^ |
@@ -0,0 +1,105 @@ +Name: cscope +Summary: Developer's tool for browsing source code +Version: 15.9 +Release: 0 +Group: Development/Tools +License: BSD +URL: https://cscope.sourceforge.net +Sources: + - https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz +Patches: + # thanks, gentoo! + - cscope-15.7a-ocs-sysdir.patch + - cscope-15.9-pkgconfig.patch + - cscope-15.9-emacs-27.patch +Description: | + cscope is an interactive, screen-oriented tool that allows the user to + browse through C source files for specified elements of code. + + %if "%{?vendor}" == "chum" + Type: console-application + DeveloperName: The Santa Cruz Operation + PackagedBy: nephros + Categories: + - Development + - Utility + PackageIcon: %{url}/pics/cscope_main.jpg + Links: + Homepage: %{url} + %endif + +#SetupOptions: -q -n %{name}-%{version}/upstream +RpmLintIgnore: + - 'summary-too-long' + - 'description-line-too-long' + - 'no-changelogname-tag' + - 'invalid-url' +Macros: + - 'vimpluginname;cctree' + - 'vimplugindir;%{_datadir}/vimfiles' + - 'vimpluginsubdirs;after autoload colors compiler doc ftdetect ftplugin indent keymap macros plugin spell syntax' +#Macros: +# - 'pkgname;%{name}' +#Patches: +# - 'baz' +PkgBR: + - bison + - flex + - emacs +PkgConfigBR: + - ncursesw +Configure: reconfigure +Builder: none +Files: + - '%license COPYING' + - '%{_bindir}/cscope' + - '%{_bindir}/ocs' + +SubPackages: + - Name: xcscope + AsWholeName: true + Summary: Emacs plugin for %{name} + Group: Development/Tools + Requires: + - '%{name}' + - emacs + Description: | + %if "%{?vendor}" == "chum" + Title: CScope for Emacs + Type: addon + DeveloperName: The Santa Cruz Operation + PackagedBy: nephros + PackageIcon: https://framalibre.org/images/logo/GNU%20Emacs.png + Categories: + - Text + - Development + Links: + Homepage: %{url} + %endif + Files: + - '%{_bindir}/cscope-indexer' + - '%{_datadir}/emacs/site-lisp/*' + - Name: vim-%{name} + AsWholeName: true + Summary: vim plugin for %{name} + Group: Development/Tools + BuildArch: noarch + Requires: + - '%{name}' + - vim-filesystem + Description: | + %if "%{?vendor}" == "chum" + Title: CScope for Vim + Type: addon + DeveloperName: The Santa Cruz Operation + PackagedBy: nephros + PackageIcon: https://www.vim.org/images/vimlogo.svg + Categories: + - Text + - Development + Links: + Homepage: %{url} + %endif + Files: + - '%{vimplugindir}/plugin/%{vimpluginname}.vim' + - '%{vimplugindir}/doc/*.txt' |