mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-28 17:32:32 +01:00
Removed old/not working ebuilds
This commit is contained in:
5
app-vim/pyclewn/Manifest
Normal file
5
app-vim/pyclewn/Manifest
Normal file
@@ -0,0 +1,5 @@
|
||||
AUX pyclewn_install-access-denied.patch 441 RMD160 f56834f1948c496bc8ad112a94771314e48938fe SHA1 1c303794db5e9cb984454111eaeb3255d3dacc7f SHA256 f30b84374a7237f6663eff84a6d3263872fb4e3afd2d64d2383361e864677ea6
|
||||
AUX pyclewn_install.py 5572 RMD160 f0de3312be5d7130fcbd77f9b3b3d240b844853c SHA1 9b450ea797e636c8e938c674afc891d05f199ed6 SHA256 f46ed19e6471d0c90ad1acef9b17cd0d38bc5950fb3a5016426e22cf659e9f5c
|
||||
AUX pyclewn_install.py.new 5428 RMD160 2ba3c34706b722554a6caa558334e5aef34a1524 SHA1 f3530dde3a4ccaadd96a4993135aa7c1b6a50fd1 SHA256 9541dbe4098e4e85ff9bba69aa417906719929912df4d84dd0f0fe985c25db91
|
||||
DIST pyclewn-1.7.py2.tar.gz 139408 RMD160 883cfc4505b658f6aaa07828d31650d0a7df35ce SHA1 b19be2a7929c4849879f61d12e1c42bb327d0254 SHA256 5c9abf4c7995ede2e7fa60b39d9d368c2dd3153b4ab1bcdd157e40b77d744317
|
||||
EBUILD pyclewn-1.7.ebuild 819 RMD160 6bcc8a8846631b7394c7dcf3ba33bf5330089875 SHA1 c56731a7f2fb422ade284a4d080eaff1bda31dd5 SHA256 c6b3e7cd3d1c70b1af27e001eceb9c1f6e846e6c2ef389f8aea3a422ec41f294
|
||||
11
app-vim/pyclewn/files/pyclewn_install-access-denied.patch
Normal file
11
app-vim/pyclewn/files/pyclewn_install-access-denied.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- pyclewn_install.py 2011-11-23 21:14:52.000000000 +0100
|
||||
+++ pyclewn_install.py.new 2011-11-23 21:19:31.000000000 +0100
|
||||
@@ -59,8 +59,6 @@
|
||||
def build_vimhelp():
|
||||
"""Add pyclewn help to Vim help."""
|
||||
helpdir = pathjoin(vimdir(), 'doc')
|
||||
- print >> sys.stderr, 'running Vim help tags file generation in %s' % helpdir
|
||||
- vim.exec_vimcmd(['helptags ' + helpdir, 'echo v:version'])
|
||||
|
||||
def unlink(filename):
|
||||
"""Delete a file."""
|
||||
169
app-vim/pyclewn/files/pyclewn_install.py
Executable file
169
app-vim/pyclewn/files/pyclewn_install.py
Executable file
@@ -0,0 +1,169 @@
|
||||
#!/usr/bin/env python
|
||||
"""Windows install scripts.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
import string
|
||||
import distutils.sysconfig as sysconfig
|
||||
import distutils.dir_util as dir_util
|
||||
from os.path import join as pathjoin
|
||||
from distutils.file_util import copy_file
|
||||
from distutils.errors import DistutilsExecError
|
||||
|
||||
import clewn.vim as vim
|
||||
import clewn.misc as misc
|
||||
|
||||
ICON_NAME = 'clewn.ico'
|
||||
PYCLEWN_SHORTCUT = 'Pyclewn.lnk'
|
||||
|
||||
def icon(vimdir):
|
||||
"""Return icon file tuple to be used as data file in distutils setup."""
|
||||
return (vimdir, [pathjoin('images', ICON_NAME)])
|
||||
|
||||
def vim_features():
|
||||
"""Abort if missing required Vim feature."""
|
||||
output = vim.exec_vimcmd(['version'])
|
||||
|
||||
print >> sys.stderr, 'checking netbeans support in vim:',
|
||||
try:
|
||||
output.index('+netbeans_intg')
|
||||
except ValueError:
|
||||
raise DistutilsExecError, 'netbeans support in vim is required'
|
||||
print >> sys.stderr, 'yes'
|
||||
|
||||
print >> sys.stderr, 'checking auto commands support in vim:',
|
||||
try:
|
||||
output.index('+autocmd')
|
||||
except ValueError:
|
||||
raise DistutilsExecError, 'auto commands support in vim is required'
|
||||
print >> sys.stderr, 'yes'
|
||||
|
||||
@misc.previous_evaluation
|
||||
def vimdir():
|
||||
"""Return the vim runtime files directory."""
|
||||
if 'vimdir' in os.environ:
|
||||
dir = os.environ['vimdir']
|
||||
else:
|
||||
path = vim.exec_vimcmd(['echon $VIM'])
|
||||
path = path.strip(' \t\r\n')
|
||||
if not os.path.isdir(path):
|
||||
nodir = ('Invalid data files path. $VIM="%s" is returned'
|
||||
' by Vim, but this is not an existing directory.' % path)
|
||||
raise DistutilsExecError, nodir
|
||||
dir = pathjoin(path, 'vimfiles')
|
||||
print 'Vim user data files location: "%s"' % dir
|
||||
return dir
|
||||
|
||||
def build_vimhelp():
|
||||
"""Add pyclewn help to Vim help."""
|
||||
helpdir = pathjoin(vimdir(), 'doc')
|
||||
print >> sys.stderr, 'running Vim help tags file generation in %s' % helpdir
|
||||
vim.exec_vimcmd(['helptags ' + helpdir, 'echo v:version'])
|
||||
|
||||
def unlink(filename):
|
||||
"""Delete a file."""
|
||||
try:
|
||||
os.unlink(filename)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def substitute_autoload(runtime_dir, mapping):
|
||||
"""Substitute templates in the autoload plugin."""
|
||||
plugin = pathjoin(pathjoin(runtime_dir, 'autoload'), 'pyclewn.vim')
|
||||
f = open(plugin)
|
||||
content = f.read()
|
||||
f.close()
|
||||
content = string.Template(content).substitute(mapping)
|
||||
f = open(plugin, 'w')
|
||||
f.write(content)
|
||||
f.close()
|
||||
|
||||
def install():
|
||||
"""Write the bat file and copy the runtime files."""
|
||||
prefix = sysconfig.get_config_var('prefix')
|
||||
scripts = pathjoin(prefix, 'scripts')
|
||||
vim_features()
|
||||
|
||||
# install runtime files
|
||||
runtime_dir = pathjoin(prefix, 'pyclewn')
|
||||
icon_file = pathjoin(runtime_dir, ICON_NAME)
|
||||
copy_file(icon_file, scripts)
|
||||
print >> sys.stderr, 'copying file %s' % icon_file
|
||||
unlink(icon_file)
|
||||
|
||||
# substitute templates in the autoload plugin
|
||||
clewnbat = pathjoin(scripts, 'pyclewn.bat')
|
||||
mapping = {'pgm': misc.quote(clewnbat), 'start': 'start '}
|
||||
substitute_autoload(runtime_dir, mapping)
|
||||
|
||||
for filename in dir_util.copy_tree(runtime_dir, vimdir()):
|
||||
print >> sys.stderr, 'copying file %s' % filename
|
||||
print >> sys.stderr, 'removing directory %s' % runtime_dir
|
||||
dir_util.remove_tree(runtime_dir)
|
||||
|
||||
build_vimhelp()
|
||||
|
||||
# create pyclewn.bat
|
||||
pyexe = pathjoin(prefix, 'python.exe')
|
||||
scriptpy = pathjoin(scripts, 'pyclewn')
|
||||
f = open(clewnbat, 'w')
|
||||
f.write("@start %s %s %%*\n" % (pyexe, scriptpy))
|
||||
f.close()
|
||||
|
||||
# create Windows shortcut
|
||||
create_shortcut(
|
||||
clewnbat,
|
||||
'Pyclewn allows using Vim as a front end to a debugger.',
|
||||
PYCLEWN_SHORTCUT,
|
||||
r'--pgm=C:\mingw\bin\gdb.exe --daemon',
|
||||
'',
|
||||
pathjoin(scripts, ICON_NAME),
|
||||
0)
|
||||
|
||||
# copy shortcut to Desktop when it does not exist
|
||||
desktop_path = get_special_folder_path('CSIDL_DESKTOPDIRECTORY')
|
||||
pyclewn_shortcut = pathjoin(desktop_path, PYCLEWN_SHORTCUT)
|
||||
if not os.path.exists(pyclewn_shortcut):
|
||||
copy_file(PYCLEWN_SHORTCUT, desktop_path)
|
||||
print >> sys.stderr, 'copying pyclewn to the desktop: %s' % pyclewn_shortcut
|
||||
|
||||
# cleanup
|
||||
unlink(PYCLEWN_SHORTCUT)
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.py'))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.pyc'))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.pyo'))
|
||||
|
||||
print >> sys.stderr, 'pyclewn postinstall completed'
|
||||
|
||||
def uninstall():
|
||||
"""Uninstall on Windows."""
|
||||
prefix = sysconfig.get_config_var('prefix')
|
||||
scripts = pathjoin(prefix, 'scripts')
|
||||
|
||||
# remove scripts, icon and shortcut
|
||||
unlink(pathjoin(scripts, 'pyclewn'))
|
||||
unlink(pathjoin(scripts, 'pyclewn.bat'))
|
||||
unlink(pathjoin(scripts, ICON_NAME))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.py'))
|
||||
desktop_path = get_special_folder_path('CSIDL_DESKTOPDIRECTORY')
|
||||
unlink(pathjoin(desktop_path, PYCLEWN_SHORTCUT))
|
||||
|
||||
# remove vim files and rebuild vim help
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'doc'), 'pyclewn.txt'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'syntax'), 'dbgvar.vim'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'plugin'), 'pyclewn.vim'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'autoload'), 'pyclewn.vim'))
|
||||
build_vimhelp()
|
||||
|
||||
if __name__ == '__main__':
|
||||
if os.name == 'nt':
|
||||
try:
|
||||
if sys.argv[1] == '-install':
|
||||
install()
|
||||
elif sys.argv[1] == '-remove':
|
||||
uninstall()
|
||||
except Exception, err:
|
||||
# let the python installer print the error
|
||||
print >> sys.stderr, err
|
||||
167
app-vim/pyclewn/files/pyclewn_install.py.new
Executable file
167
app-vim/pyclewn/files/pyclewn_install.py.new
Executable file
@@ -0,0 +1,167 @@
|
||||
#!/usr/bin/env python
|
||||
"""Windows install scripts.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
import string
|
||||
import distutils.sysconfig as sysconfig
|
||||
import distutils.dir_util as dir_util
|
||||
from os.path import join as pathjoin
|
||||
from distutils.file_util import copy_file
|
||||
from distutils.errors import DistutilsExecError
|
||||
|
||||
import clewn.vim as vim
|
||||
import clewn.misc as misc
|
||||
|
||||
ICON_NAME = 'clewn.ico'
|
||||
PYCLEWN_SHORTCUT = 'Pyclewn.lnk'
|
||||
|
||||
def icon(vimdir):
|
||||
"""Return icon file tuple to be used as data file in distutils setup."""
|
||||
return (vimdir, [pathjoin('images', ICON_NAME)])
|
||||
|
||||
def vim_features():
|
||||
"""Abort if missing required Vim feature."""
|
||||
output = vim.exec_vimcmd(['version'])
|
||||
|
||||
print >> sys.stderr, 'checking netbeans support in vim:',
|
||||
try:
|
||||
output.index('+netbeans_intg')
|
||||
except ValueError:
|
||||
raise DistutilsExecError, 'netbeans support in vim is required'
|
||||
print >> sys.stderr, 'yes'
|
||||
|
||||
print >> sys.stderr, 'checking auto commands support in vim:',
|
||||
try:
|
||||
output.index('+autocmd')
|
||||
except ValueError:
|
||||
raise DistutilsExecError, 'auto commands support in vim is required'
|
||||
print >> sys.stderr, 'yes'
|
||||
|
||||
@misc.previous_evaluation
|
||||
def vimdir():
|
||||
"""Return the vim runtime files directory."""
|
||||
if 'vimdir' in os.environ:
|
||||
dir = os.environ['vimdir']
|
||||
else:
|
||||
path = vim.exec_vimcmd(['echon $VIM'])
|
||||
path = path.strip(' \t\r\n')
|
||||
if not os.path.isdir(path):
|
||||
nodir = ('Invalid data files path. $VIM="%s" is returned'
|
||||
' by Vim, but this is not an existing directory.' % path)
|
||||
raise DistutilsExecError, nodir
|
||||
dir = pathjoin(path, 'vimfiles')
|
||||
print 'Vim user data files location: "%s"' % dir
|
||||
return dir
|
||||
|
||||
def build_vimhelp():
|
||||
"""Add pyclewn help to Vim help."""
|
||||
helpdir = pathjoin(vimdir(), 'doc')
|
||||
|
||||
def unlink(filename):
|
||||
"""Delete a file."""
|
||||
try:
|
||||
os.unlink(filename)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def substitute_autoload(runtime_dir, mapping):
|
||||
"""Substitute templates in the autoload plugin."""
|
||||
plugin = pathjoin(pathjoin(runtime_dir, 'autoload'), 'pyclewn.vim')
|
||||
f = open(plugin)
|
||||
content = f.read()
|
||||
f.close()
|
||||
content = string.Template(content).substitute(mapping)
|
||||
f = open(plugin, 'w')
|
||||
f.write(content)
|
||||
f.close()
|
||||
|
||||
def install():
|
||||
"""Write the bat file and copy the runtime files."""
|
||||
prefix = sysconfig.get_config_var('prefix')
|
||||
scripts = pathjoin(prefix, 'scripts')
|
||||
vim_features()
|
||||
|
||||
# install runtime files
|
||||
runtime_dir = pathjoin(prefix, 'pyclewn')
|
||||
icon_file = pathjoin(runtime_dir, ICON_NAME)
|
||||
copy_file(icon_file, scripts)
|
||||
print >> sys.stderr, 'copying file %s' % icon_file
|
||||
unlink(icon_file)
|
||||
|
||||
# substitute templates in the autoload plugin
|
||||
clewnbat = pathjoin(scripts, 'pyclewn.bat')
|
||||
mapping = {'pgm': misc.quote(clewnbat), 'start': 'start '}
|
||||
substitute_autoload(runtime_dir, mapping)
|
||||
|
||||
for filename in dir_util.copy_tree(runtime_dir, vimdir()):
|
||||
print >> sys.stderr, 'copying file %s' % filename
|
||||
print >> sys.stderr, 'removing directory %s' % runtime_dir
|
||||
dir_util.remove_tree(runtime_dir)
|
||||
|
||||
build_vimhelp()
|
||||
|
||||
# create pyclewn.bat
|
||||
pyexe = pathjoin(prefix, 'python.exe')
|
||||
scriptpy = pathjoin(scripts, 'pyclewn')
|
||||
f = open(clewnbat, 'w')
|
||||
f.write("@start %s %s %%*\n" % (pyexe, scriptpy))
|
||||
f.close()
|
||||
|
||||
# create Windows shortcut
|
||||
create_shortcut(
|
||||
clewnbat,
|
||||
'Pyclewn allows using Vim as a front end to a debugger.',
|
||||
PYCLEWN_SHORTCUT,
|
||||
r'--pgm=C:\mingw\bin\gdb.exe --daemon',
|
||||
'',
|
||||
pathjoin(scripts, ICON_NAME),
|
||||
0)
|
||||
|
||||
# copy shortcut to Desktop when it does not exist
|
||||
desktop_path = get_special_folder_path('CSIDL_DESKTOPDIRECTORY')
|
||||
pyclewn_shortcut = pathjoin(desktop_path, PYCLEWN_SHORTCUT)
|
||||
if not os.path.exists(pyclewn_shortcut):
|
||||
copy_file(PYCLEWN_SHORTCUT, desktop_path)
|
||||
print >> sys.stderr, 'copying pyclewn to the desktop: %s' % pyclewn_shortcut
|
||||
|
||||
# cleanup
|
||||
unlink(PYCLEWN_SHORTCUT)
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.py'))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.pyc'))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.pyo'))
|
||||
|
||||
print >> sys.stderr, 'pyclewn postinstall completed'
|
||||
|
||||
def uninstall():
|
||||
"""Uninstall on Windows."""
|
||||
prefix = sysconfig.get_config_var('prefix')
|
||||
scripts = pathjoin(prefix, 'scripts')
|
||||
|
||||
# remove scripts, icon and shortcut
|
||||
unlink(pathjoin(scripts, 'pyclewn'))
|
||||
unlink(pathjoin(scripts, 'pyclewn.bat'))
|
||||
unlink(pathjoin(scripts, ICON_NAME))
|
||||
unlink(pathjoin(scripts, 'pyclewn_install.py'))
|
||||
desktop_path = get_special_folder_path('CSIDL_DESKTOPDIRECTORY')
|
||||
unlink(pathjoin(desktop_path, PYCLEWN_SHORTCUT))
|
||||
|
||||
# remove vim files and rebuild vim help
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'doc'), 'pyclewn.txt'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'syntax'), 'dbgvar.vim'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'plugin'), 'pyclewn.vim'))
|
||||
unlink(pathjoin(pathjoin(vimdir(), 'autoload'), 'pyclewn.vim'))
|
||||
build_vimhelp()
|
||||
|
||||
if __name__ == '__main__':
|
||||
if os.name == 'nt':
|
||||
try:
|
||||
if sys.argv[1] == '-install':
|
||||
install()
|
||||
elif sys.argv[1] == '-remove':
|
||||
uninstall()
|
||||
except Exception, err:
|
||||
# let the python installer print the error
|
||||
print >> sys.stderr, err
|
||||
34
app-vim/pyclewn/pyclewn-1.7.ebuild
Normal file
34
app-vim/pyclewn/pyclewn-1.7.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit distutils vim-doc eutils
|
||||
|
||||
DESCRIPTION="A debugger frontend for gvim written in python"
|
||||
HOMEPAGE="http://pyclewn.wiki.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.py2.tar.gz"
|
||||
#SRC_URI="http://sourceforge.net/projects/pyclewn/files/pyclewn-1.7/pyclewn-1.7.py2.tar.gz/download"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="|| ( >=app-editors/vim-7.3 >=app-editors/gvim-7.0[netbeans] )"
|
||||
RDEPEND="${DEPEND}
|
||||
sys-devel/gdb"
|
||||
|
||||
S="${WORKDIR}/${P}.py2/"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
epatch "${FILESDIR}/pyclewn_install-access-denied.patch"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
update_vim_helptags
|
||||
distutils_pkg_postinst
|
||||
}
|
||||
Reference in New Issue
Block a user