SHA256
1
0
forked from pool/mp

Accepting request 450519 from home:alois:branches:editors

Brought over from Packman.

OBS-URL: https://build.opensuse.org/request/show/450519
OBS-URL: https://build.opensuse.org/package/show/editors/mp?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2017-01-16 14:44:45 +00:00 committed by Git OBS Bridge
commit ffe79e0151
9 changed files with 444 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
mp-5.2.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f3ce1831d2cfb42a8540d197a9fdad163ecd17883a57cd798a2f30bfe791ddc1
size 504306

10
mp-5.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
GenericName=Text Editor
Name=Minimum Profit
MimeType=text/plain;
Exec=mp-5 %U
Icon=mp-5
Type=Application
Terminal=false
Categories=GTK;TextEditor;

3
mp-5.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d60e68d3665e1adcbf8b4ccd2e01767a79c9bac5d37af99e7a65933eb26609e
size 1531

21
mp-docdir.patch Normal file
View File

@ -0,0 +1,21 @@
Index: mp-5.2.10/makefile.in
===================================================================
--- mp-5.2.10.orig/makefile.in
+++ mp-5.2.10/makefile.in
@@ -144,12 +144,12 @@ install: $(INSTALL_MSG) installdoc $(INS
( cd $(MPSL) ; make install )
installdoc:
- ./mkinstalldirs $(PREFIX)/share/doc/$(APPNAME)
+ ./mkinstalldirs $(PREFIX)/share/doc/packages/$(APPNAME)
( cd $(MPDM); $(MAKE) installdoc )
( cd $(MPSL); $(MAKE) installdoc )
- install -m 644 doc/* $(PREFIX)/share/doc/$(APPNAME)
- install -m 644 $(ADD_DOCS) $(PREFIX)/share/doc/$(APPNAME)
- [ -f doc/mp_index.html ] && install -m 644 doc/mp_index.html $(PREFIX)/share/doc/$(APPNAME)/index.html || true
+ install -m 644 doc/* $(PREFIX)/share/doc/packages/$(APPNAME)
+ install -m 644 $(ADD_DOCS) $(PREFIX)/share/doc/packages/$(APPNAME)
+ [ -f doc/mp_index.html ] && install -m 644 doc/mp_index.html $(PREFIX)/share/doc/packages/$(APPNAME)/index.html || true
uninstall: $(UNINSTALLMO)
rm -f $(PREFIX)/bin/$(APPNAME)

23
mp-rpmlintrc Normal file
View File

@ -0,0 +1,23 @@
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_core.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_crypt.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_session.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_move.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_writing.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_toys.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_misc.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_syntax.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_vcs.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_spell.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_edit.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_macro.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_templates.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_clipboard.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_tui.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_search.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_drv.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_build.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_tags.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_dir.mpsl")
addFilter("incorrect-fsf-address .*/usr/share/mp-5/mp_file.mpsl")
addFilter("no-manual-page-for-binary .*mpsl")

255
mp.changes Normal file
View File

@ -0,0 +1,255 @@
-------------------------------------------------------------------
Mon Jan 16 13:48:28 UTC 2017 - aloisio@gmx.com
- Update to version 5.2.10
New features:
* New configuration directive mp.config.show_line_numbers,
to show line numbers to the left of each line.
5.2.9
New features:
* New configuration directive mp.config.emacs_scrolling, to
enable/disable emacs-like scrolling (half screen jumps
instead of line-by-line).
* New actions `scroll_up' and `scroll_down', bound by
default to `alt-cursor-up' and `alt-cursor-down'.
* New syntax highlight for JSON files.
5.2.8
New features:
* Mouse support on text interfaces (it can be disabled by
setting mp.config.no_text_mouse to 1).
* Support for the MS Windows console. Two win32 binaries are
now deployed: the classic, windowed mp-5.exe and the new,
console-based, mp-5c.exe.
* Added column to action `grep'.
5.2.7
New features:
* File format dependent build targets (to be used if a Makefile
is not found in the current directory).
* `open_under_cursor' also works over diff file marks (those
starting with @@).
* New configuration directive `make_opts', for command line
options to be added to `make'.
* Search and replace accepts Unicode chars in \x{HHHH} format.
* The status line format string can also include the %u token
to show the Unicode codepoint of the character under the cursor.
Fixed bugs:
* Fixed hexdump search.
* Avoid having zero-size marks.
5.2.6
* Fixed grep.
5.2.5
New features:
* Hex view is searchable.
* New syntax highlight for JavaScript.
Fixed bugs:
* Avoid crashes in `play_macro' action.
* Fixed failing menus on Qt4.
* Fixed file renaming errors in the directory editor.
Important changes:
* Default tab settings has been changed to convert to 4 spaces.
5.2.4
New features:
* A new directory editor, linked to the new `open_folder'
action, that allows file deletion and renaming.
* New configuration directive `font_weight'.
* New action `insert_time_stamp', that inserts the current
timestamp according to the format in the
`mp.config.time_stamp_format' configuration directive.
Changes:
* mp.add_keyseq() has been reimplemented and no longer needs
the initial [, as it already assumes it's used only for ANSI
sequences (so you may need to tweak your own definitions).
Fixes:
* Dynamic tab tweking.
* Avoid hangups when trying to highlight 0 size regexes.
* Minor VCS fixes.
* Revert can be undone.
5.2.3
New improvements:
* New actions `move_section_up' and `move_section_down'
(bound by default to `alt-cursor-up' and `alt-cursor-down').
* VCS commands can have a common or private log.
* The menu has been reorganized.
* Keycode targets can also be other keycodes (not only editor
actions), so they can be used as aliases.
* Encodings are now selected from a list.
* The Curses interface now includes a read-only scrollbar.
* A much faster hexadecimal viewer.
Other changes:
* Al MP code has been refactored to use new MPSL object-oriented
capabilities.
5.2.2
Major improvements:
* Added Version Control commands (bound by default to `ctrl-p').
The supported systems are (adding new ones is very easy):
+ Git
+ Subversion
+ Mercurial
* If any file being edited is modified externally, the situation
is detected and the user is prompted for file reloading.
* GTK library detection: Uses 3.x if available, then 2.x.
* Special information gathering on help: if the file being edited
is C/C++ and asking for help (by pressing `F1') do not return
a `man' page, a special routine inspects all source files and
headers looking for structures, variables and function prototypes
to be shown as help.
* If a template name starts with #!, the template body is assumed
to be MPSL code, that will be executed and its value returned
as the template to be inserted.
* New "Pipes" game.
* New `check_for_updates' action.
Fixed bugs:
* Make `keep_eol' behaviour more intuitive (bug #1294).
5.2.1
New actions:
* `indent_block': Indents the current line or the selected block.
* `unindent_block': Reverse of `indent_block'.
New features:
* ~/.mp_templates can be a directory. If it is, the `global' file
there is always read (and those templates put at the top) and it
will also read a file named like the current syntax highlight
definition (so different templates appear if your editing C, Perl,
etc.).
New configuration options:
* `mp.config.smart_bol': if set to nonzero, the `move_bol' action
now moves to the first non-blank character in the line instead of
to column 0 (unless the cursor is already on the first non-blank).
Other improvements:
* The following actions accept additional arguments when called
as functions (and do not ask for them, if present):
+ `goto'
+ `save_as'
+ `exec_command'
+ `filter_selection'
- Refreshed mp-docdir.patch
- Added mp-rpmlintrc
- Spec cleanup
-------------------------------------------------------------------
Sat Apr 23 00:00:00 UTC 2011 - detlef@links2linux.de
- new upstream version <5.2.0>
* New actions:
- filter_selection: to filter the selection (or the full document if no
selection is done) through a system command.
- exec_action: that shows a list of actions to execute on the current
document.
- cut_lines_with_string: that cuts to the clipboard all lines in a document
or block that matches a regular expression.
- insert_real_tab: bound to shift-tab, to insert a tab character (\t)
regardless of whatever is set in the tabs_as_spaces configuration variable.
- insert_next_item: to insert a new enumeration item in a document.
* Bugfixes:
- Fixed insert / overwrite mode.
- If a selection is invisible (incomplete or with the start and end in the
same character), a new keystroke does not jump to it.
* New configuration options:
- mp.config.hw_cursor: to activate the hardware cursor in text environments
(disabled by default).
* Text user interface improvements:
- File opening list is fully navegable (directories up and down),
- Selection lists accept letter keys to jump to elements,
- If a text mode menu panel do not fit vertically on the screen, menu items
are scrolled as needed.
* New command line options:
- -txt: force text mode (instead of GUI).
* General improvements:
- If a block is selected, actions word_wrap_paragraph, join_paragraph and
eval_doc act only on it.
- The internal engine has been partly rewritten, so it requires less memory
and it's a bit faster.
-------------------------------------------------------------------
Wed Aug 25 00:00:00 UTC 2010 - detlef@links2linux.de
- new upstream version <5.1.4>
* If a block is selected, any keystroke substitutes it.
* Support for Alt + keys (ASCII and movement) has been added,
and mostly left unbound to be used by the user for his own
keybindings.
* A new tab mode, which uses the previous line as a template
for tab columns.
* Fixed action `open_under_cursor'.
* The `mp.paste()' function returns the clipboard content
as a string if called without arguments.
* New Grutatxt syntax highlighter.
* Fix F10 in Win32.
* Fix a bug when calculating the drawing position in the
selected block, that were leading to crashes.
-------------------------------------------------------------------
Tue Sep 22 00:00:00 UTC 2009 - detlef@links2linux.de
- new upstream version <5.1.3>
* A new Qt4 driver (adapted from the KDE4 driver).
* A new hexadecimal viewer.
* New action 'open_dropped_files', to open files dropped from the underlying system GUI.
* Improved file encoding autodetection by looking at the UTF BOM marks.
* New configuration option keep_eol, to keep the original end of line sequence each document had.
* Fixed some clipboard issues, as replacing the selected block when pasting and some crashes.
* win32 executable has been renamed to mp-5.exe.
* The status line format string can also include the %e token to show the encoding used by the document.
* Fixed win32 input processing in non-latin environments.
* Setting an empty encoding (to fall back to system defaults) always work.
-------------------------------------------------------------------
Sat Jul 18 00:00:00 UTC 2009 - detlef@links2linux.de
- new upstream version <5.1.2>
* The `grep' action can now be recursive.
* New syntax color for special documentation blocks.
* Fix searching into empty selected blocks (this was bug #1269).
* New action `section_list', that shows a list of _sections_
in the current document to jump to. Sections are usually
function definitions and special marks in programming
languages.
* New action `seek_misspelled', to search the next
misspelled word. It has been assigned to keycode `f5'.
* New action `ignore_last_misspell', to add the last misspelled
word found by `seek_misspelled' to a whitelist so it won't
be found again.
* New action `seek_repeated_word', to search for words starting
or ending with the same number of letters up to a maximum
distance. It's controlled by the new configuration directives
`mp.config.rw_num_chars' and `mp.config.rw_max_dist'.
It has been assigned to keycode `f6' (this keycode was
previously assigned to `join_paragraph', which has no
keybinding now).
* The action `open_templates_file' has been fixed.
* Several GTK interface updates by fellow developer Sebastian Vöcking.
* New command line option `-d', to change the working directory.
* Several fixes to the win32 driver: word wrapping, combobox
drop-down sizes, underlined text.
* Avoid hanging if the external ispell program is broken.
* The `dump()' function now dumps its argument as MPSL code.
-------------------------------------------------------------------
Sun Dec 7 00:00:00 UTC 2008 - detlef@links2linux.de
- new upstream version <5.1.1>
* Internationalization works in all platforms (including KDE4,
were it was faulty, and win32, where it was non-existent since
the 3.x series).
* The status line format string can also include the %w token
to show the number of words in the current document or selection
(can be slow).
* Search and replace is now limited to the selected block, if any.
-------------------------------------------------------------------
Sat Sep 27 00:00:00 UTC 2008 - detlef@links2linux.de
- new upstream version <5.1.0>
-------------------------------------------------------------------
Wed Jul 2 00:00:00 UTC 2008 - detlef@links2linux.de
- new upstream version <5.0.3>
-------------------------------------------------------------------
Wed Mar 19 00:00:00 UTC 2008 - detlef@links2linux.de
- initial build <5.0.2>

105
mp.spec Normal file
View File

@ -0,0 +1,105 @@
#
# spec file for package mp
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mp
Version: 5.2.10
Release: 0
Summary: A text editor for programmers
License: GPL-2.0
Group: Productivity/Text/Editors
Url: http://triptico.com/software/mp.html
Source0: http://triptico.com/download/%{name}-%{version}.tar.gz
Source1: %{name}-5.desktop
Source2: %{name}-5.png
Source3: %{name}-rpmlintrc
Patch0: %{name}-docdir.patch
BuildRequires: fdupes
BuildRequires: glibc-devel
BuildRequires: gtk2-devel
BuildRequires: libqt4-devel
BuildRequires: ncurses-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Minimum Profit
A text editor for programmers
Features
* Fully scriptable using a C-like scripting language.
* Unlimited undo levels.
* Complete Unicode support.
* Multiple files can be edited at the same time and blocks copied and pasted among them.
* Syntax highlighting for many popular languages / file formats: C, C++, Perl, Shell Scripts,
Ruby, Php, Python, HTML...
* Creative use of tags: tags created by the external utility ctags are used to move
instantaneously to functions or variables inside your current source tree. Tags are
visually highlighted (underlined), and symbol completion can be triggered to avoid typing
your own function names over and over.
* Intelligent help system: pressing F1 over any word of a text being edited triggers the
underlying system help (calling man when editing C or Shell files, perldoc with Perl, ri
on Ruby, winhelp on MS Windows...).
* Understandable interface: drop-down menus, reasonable default key bindings.
* Configurable keys, menus and colors.
* Text templates can be easily defined / accessed.
* Multiplatform: Console/curses, GTK+, MS Windows.
* Automatic indentation, word wrapping, internal grep, learning / repeating functions.
* Spellchecking support (via the ispell package).
* Multilingual.
* Password-protected, encrypted text files (using the ARCFOUR algorithm).
* It helps you abandon vi, emacs and other six-legged freaks definitely.
%prep
%setup -q
%patch0 -p1
%build
CFLAGS="%{optflags}" \
./config.sh --prefix=%{_prefix} --docdir=%{_docdir}/mp-5
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
%make_install
install -D -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}-5.desktop
install -D -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps/%{name}-5.png
%suse_update_desktop_file %{name}-5 TextEditor
%find_lang minimum-profit
rm %{buildroot}%{_datadir}/doc/packages/mp-5/mpsl_quickref.ps
%fdupes -s %{buildroot}
%files -f minimum-profit.lang
%defattr(-,root,root)
%{_bindir}/%{name}-5
%{_bindir}/%{name}sl
%dir %{_docdir}/%{name}-5
%{_docdir}/%{name}-5/*
%{_mandir}/man1/%{name}-5.1%{ext_man}
%dir %{_datadir}/%{name}-5
%{_datadir}/%{name}-5/*
%{_datadir}/applications/%{name}-5.desktop
%{_datadir}/pixmaps/%{name}-5.png
%changelog