debian/0000755000000000000000000000000012250706166007173 5ustar debian/gocode.10000644000000000000000000000231712172446423010520 0ustar .\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2013 Hilko Bengen .\" .TH GOCODE 1 .SH NAME gocode \- autocompletion daemon for the Go programming language .SH SYNOPSIS .B gocode .RI [-s] [-f=] [-in=] [-sock=] [-addr=] [] .SH DESCRIPTION This manual page documents briefly the .B gocode command. .PP \fBgocode\fP is an autocompletion daemon for the Go programming language. It is intended to be integraded with a source code editor, such as Emacs or Vim. .SH OPTIONS .TP .B \-addr="localhost:37373" Address for tcp socket .TP .B \-f="nice" Output format (vim | emacs | nice | csv | json) .TP .B \-in="" Use this file instead of stdin input .TP .B \-s=false Run a server instead of a client .TP .B \-sock="unix" socket type (unix | tcp) .SH COMMANDS .TP .B autocomplete [] main autocompletion command .TP .B close close the gocode daemon .TP .B status gocode daemon status report .TP .B drop-cache drop gocode daemon's cache .TP .B set [ []] list or set config options .SH AUTHOR This manual page was written by Hilko Bengen , for the Debian project (and may be used by others). debian/gocode-auto-complete-el.emacsen-install0000755000000000000000000000204412172451732016610 0ustar #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/gocode-auto-complete-el # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . FLAVOR=$1 PACKAGE=gocode-auto-complete-el case $FLAVOR in emacs|emacs21|emacs20|emacs19|mule2|*xemacs*) exit 0 ;; esac echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} #FLAVORTEST=`echo $FLAVOR | cut -c-6` #if [ ${FLAVORTEST} = xemacs ] ; then # SITEFLAG="-no-site-file" #else # SITEFLAG="--no-site-file" #fi FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} ELRELDIR=../../../emacs/site-lisp/${PACKAGE} install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el (debian-pkg-add-load-path-item ".") (setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el exit 0 debian/compat0000644000000000000000000000000212172446423010371 0ustar 9 debian/vim-gocomplete.yaml0000644000000000000000000000022212227517475013011 0ustar addon: gocode description: gocode integration disabledby: "let loaded_gocode = 1" files: - plugin/gocomplete.vim - ftplugin/go/gocomplete.vim debian/changelog0000644000000000000000000000203712250705752011047 0ustar gocode (0~git20130712-3) unstable; urgency=low * Fix package name in remove script (Closes: #717407) -- Hilko Bengen Sat, 07 Dec 2013 21:57:59 +0100 gocode (0~git20130712-2) unstable; urgency=low * Fix vim-addon-manager integration, thanks to paul cannon (Closes: #726442) -- Hilko Bengen Wed, 16 Oct 2013 16:16:16 +0200 gocode (0~git20130712-1) unstable; urgency=low * New upstream version * Updated debian/copyright * Fixed FTBFS when building only the architecture-dependent bits (Closes: #717362) * Don't install for xemacs21 and older GNU Emacsen (Closes: #717359) -- Hilko Bengen Sat, 20 Jul 2013 10:27:42 +0200 gocode (0~git20130523-2) unstable; urgency=low * Renamed vim-gocode to vim-gocomplete, moved the files around -- Hilko Bengen Wed, 05 Jun 2013 22:52:59 +0200 gocode (0~git20130523-1) unstable; urgency=low * Initial release (Closes: #708859) -- Hilko Bengen Sat, 01 Jun 2013 18:32:17 +0200 debian/source/0000755000000000000000000000000012104030636010461 5ustar debian/source/format0000644000000000000000000000001412104030636011667 0ustar 3.0 (quilt) debian/gocode.default0000644000000000000000000000035012104030636011765 0ustar # Defaults for gocode initscript # sourced by /etc/init.d/gocode # installed at /etc/default/gocode by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS="" debian/copyright0000644000000000000000000000447212172451732011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gocode Source: Files: * Copyright: 2010 nsf License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2013 Hilko Bengen License: GPL-3.0+ Files: emacs/* Copyright: 2010 Mikhail Kuryshev License: GPL-3.0+ Files: emacs-company/* Copyright: 2012 nsf License: none License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: none No license, this code is under public domain, do whatever you want. debian/rules0000755000000000000000000000061412172451732010253 0ustar #!/usr/bin/make -f # -*- makefile -*- export GOPATH=`pwd` %: dh $@ override_dh_auto_build: go build -o gocode $(filter-out os_windows.go,$(wildcard *.go)) override_dh_install-indep: dh_install mv debian/vim-gocomplete/usr/share/vim/addons/ftplugin/go/go.vim \ debian/vim-gocomplete/usr/share/vim/addons/ftplugin/go/gocomplete.vim override_dh_auto_clean: dh_auto_clean rm -f gocode debian/vim-gocomplete.install0000644000000000000000000000025312227517475013521 0ustar vim/autoload/gocomplete.vim /usr/share/vim/addons/plugin vim/ftplugin/go.vim /usr/share/vim/addons/ftplugin/go debian/vim-gocomplete.yaml /usr/share/vim/registry debian/gocode.manpages0000644000000000000000000000002012172446423012140 0ustar debian/gocode.1 debian/control0000644000000000000000000000175112172446423010602 0ustar Source: gocode Section: devel Priority: extra Maintainer: Hilko Bengen Build-Depends: debhelper (>= 9~), golang-go, Standards-Version: 3.9.4 Homepage: https://github.com/nsf/gocode Package: gocode Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, Description: Go autocompletion daemon Gocode is a autocompletion helper tool for the Go programming language that is intended to be integrated with source code editors. Package: vim-gocomplete Section: editors Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, vim, gocode, vim-syntax-go Recommends: vim-addon-manager Enhances: gocode Description: gocode integration for Vim This package provides gocode integration with Vim. Package: gocode-auto-complete-el Section: editors Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, gocode, auto-complete-el, Enhances: gocode Description: gocode integration for Emacs This package provides gocode integration with Emacs, based on auto-complete. debian/gocode-auto-complete-el.emacsen-startup0000644000000000000000000000221612172446423016643 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50gocode-auto-complete-el.el ;; for the Debian gocode-auto-complete-el package ;; ;; Originally contributed by Nils Naumann ;; Modified by Dirk Eddelbuettel ;; Adapted for dh-make by Jim Van Zandt ;; The gocode-auto-complete-el package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; xemacs19, emacs20, xemacs20...). The compiled code is then ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (let ((package-dir (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/gocode-auto-complete-el"))) ;; If package-dir does not exist, the gocode-auto-complete-el package must have ;; removed but not purged, and we should skip the setup. (when (file-directory-p package-dir) (if (fboundp 'debian-pkg-add-load-path-item) (debian-pkg-add-load-path-item package-dir) (setq load-path (cons package-dir load-path))))) debian/gocode-auto-complete-el.install0000644000000000000000000000011412172446423015171 0ustar emacs/go-autocomplete.el /usr/share/emacs/site-lisp/gocode-auto-complete-el debian/gocode-auto-complete-el.emacsen-remove0000755000000000000000000000042612250702530016431 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/gocode-auto-complete FLAVOR=$1 PACKAGE=gocode-auto-complete-el if [ ${FLAVOR} != emacs ]; then echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi debian/gocode.install0000644000000000000000000000006412172446423012023 0ustar gocode usr/bin emacs/*.el usr/share/emacs/site-lisp debian/docs0000644000000000000000000000001212104030636010025 0ustar README.md