mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
vip
This commit is contained in:
@@ -12,6 +12,8 @@ DISTFILES+= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}.tar.xz:bootstr
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
DISTINFO_FILE = ${MASTERDIR}/distinfo.${ARCH}
|
||||
|
||||
|
||||
BOOTSTRAP_TAG= go1.17.9
|
||||
|
||||
|
||||
5
lang/go17/distinfo.amd64
Normal file
5
lang/go17/distinfo.amd64
Normal file
@@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1672562856
|
||||
SHA256 (go1.17.12.src.tar.gz) = 0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209
|
||||
SIZE (go1.17.12.src.tar.gz) = 22205674
|
||||
SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
|
||||
SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
|
||||
@@ -2,7 +2,7 @@
|
||||
# $FreeBSD: head/lang/go/Makefile 470619 2018-05-22 14:32:09Z jlaffaye $
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 1.19.2
|
||||
PORTVERSION= 1.19.4
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
TIMESTAMP = 1665823457
|
||||
SHA256 (go1.19.2.src.tar.gz) = 2ce930d70a931de660fdaf271d70192793b1b240272645bf0275779f6704df6b
|
||||
SIZE (go1.19.2.src.tar.gz) = 26534465
|
||||
TIMESTAMP = 1670445773
|
||||
SHA256 (go1.19.4.src.tar.gz) = eda74db4ac494800a3e66ee784e495bfbb9b8e535df924a8b01b1a8028b7f368
|
||||
SIZE (go1.19.4.src.tar.gz) = 26542047
|
||||
SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
|
||||
SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
|
||||
|
||||
@@ -575,6 +575,7 @@ lib/go/pkg/freebsd_amd64/internal/poll.a
|
||||
lib/go/pkg/freebsd_amd64/internal/profile.a
|
||||
lib/go/pkg/freebsd_amd64/internal/race.a
|
||||
lib/go/pkg/freebsd_amd64/internal/reflectlite.a
|
||||
lib/go/pkg/freebsd_amd64/internal/safefilepath.a
|
||||
lib/go/pkg/freebsd_amd64/internal/singleflight.a
|
||||
lib/go/pkg/freebsd_amd64/internal/syscall/execenv.a
|
||||
lib/go/pkg/freebsd_amd64/internal/syscall/unix.a
|
||||
@@ -1321,6 +1322,7 @@ lib/go/src/cmd/compile/internal/test/issue50182_test.go
|
||||
lib/go/src/cmd/compile/internal/test/lang_test.go
|
||||
lib/go/src/cmd/compile/internal/test/logic_test.go
|
||||
lib/go/src/cmd/compile/internal/test/mulconst_test.go
|
||||
lib/go/src/cmd/compile/internal/test/race.go
|
||||
lib/go/src/cmd/compile/internal/test/README
|
||||
lib/go/src/cmd/compile/internal/test/reproduciblebuilds_test.go
|
||||
lib/go/src/cmd/compile/internal/test/shift_test.go
|
||||
@@ -6159,6 +6161,10 @@ lib/go/src/internal/reflectlite/swapper.go
|
||||
lib/go/src/internal/reflectlite/tostring_test.go
|
||||
lib/go/src/internal/reflectlite/type.go
|
||||
lib/go/src/internal/reflectlite/value.go
|
||||
lib/go/src/internal/safefilepath/path_other.go
|
||||
lib/go/src/internal/safefilepath/path_test.go
|
||||
lib/go/src/internal/safefilepath/path_windows.go
|
||||
lib/go/src/internal/safefilepath/path.go
|
||||
lib/go/src/internal/singleflight/singleflight_test.go
|
||||
lib/go/src/internal/singleflight/singleflight.go
|
||||
lib/go/src/internal/syscall/execenv/execenv_default.go
|
||||
@@ -11020,12 +11026,15 @@ lib/go/test/fixedbugs/issue55122.go
|
||||
lib/go/test/fixedbugs/issue55122b.go
|
||||
lib/go/test/fixedbugs/issue5515.go
|
||||
lib/go/test/fixedbugs/issue5581.go
|
||||
lib/go/test/fixedbugs/issue55889.go
|
||||
lib/go/test/fixedbugs/issue5607.go
|
||||
lib/go/test/fixedbugs/issue5609.go
|
||||
lib/go/test/fixedbugs/issue56105.go
|
||||
lib/go/test/fixedbugs/issue5614.dir/rethinkgo.go
|
||||
lib/go/test/fixedbugs/issue5614.dir/x.go
|
||||
lib/go/test/fixedbugs/issue5614.dir/y.go
|
||||
lib/go/test/fixedbugs/issue5614.go
|
||||
lib/go/test/fixedbugs/issue56141.go
|
||||
lib/go/test/fixedbugs/issue5698.go
|
||||
lib/go/test/fixedbugs/issue5704.go
|
||||
lib/go/test/fixedbugs/issue5753.go
|
||||
@@ -12886,6 +12895,7 @@ lib/go/VERSION
|
||||
@dir lib/go/src/internal/profile
|
||||
@dir lib/go/src/internal/race
|
||||
@dir lib/go/src/internal/reflectlite
|
||||
@dir lib/go/src/internal/safefilepath
|
||||
@dir lib/go/src/internal/singleflight
|
||||
@dir lib/go/src/internal/syscall/execenv
|
||||
@dir lib/go/src/internal/syscall/unix
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# $Id$
|
||||
#
|
||||
PORTNAME= Compress-Raw-Zlib
|
||||
PORTVERSION= 2.074
|
||||
PORTVERSION= 2.202
|
||||
CATEGORIES= archivers perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
SHA256 (Compress-Raw-Zlib-2.074.tar.gz) = a369de78a36aa0951cdf1cd15c15109f2421e9b6d148d6322916906876ea7721
|
||||
SIZE (Compress-Raw-Zlib-2.074.tar.gz) = 239604
|
||||
TIMESTAMP = 1671137814
|
||||
SHA256 (Compress-Raw-Zlib-2.202.tar.gz) = 96e20946eb457a32d2d7a0050b922e37b5ada41246bcdc824196d3f7c4da91b7
|
||||
SIZE (Compress-Raw-Zlib-2.202.tar.gz) = 480563
|
||||
|
||||
15
perl/p5-Compress-Raw-Zlib/files/patch-config.in
Normal file
15
perl/p5-Compress-Raw-Zlib/files/patch-config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
--- config.in.orig 2019-03-16 16:41:19 UTC
|
||||
+++ config.in
|
||||
@@ -16,9 +16,9 @@
|
||||
# Setting the Gzip OS Code
|
||||
#
|
||||
|
||||
-BUILD_ZLIB = True
|
||||
-INCLUDE = ./zlib-src
|
||||
-LIB = ./zlib-src
|
||||
+BUILD_ZLIB = False
|
||||
+INCLUDE = /usr/include
|
||||
+LIB = /usr/lib
|
||||
OLD_ZLIB = False
|
||||
GZIP_OS_CODE = AUTO_DETECT
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# $FreeBSD: head/www/p5-Mojolicious/Makefile 433779 2017-02-10 00:13:51Z adamw $
|
||||
|
||||
PORTNAME= Mojolicious
|
||||
PORTVERSION= 9.25
|
||||
PORTVERSION= 9.30
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1652047581
|
||||
SHA256 (Mojolicious-9.25.tar.gz) = 65c166b68ddf5e4c2c430a8730559bb9d4fec5a0313fca54e9707c104ed94b7a
|
||||
SIZE (Mojolicious-9.25.tar.gz) = 846570
|
||||
TIMESTAMP = 1671213544
|
||||
SHA256 (Mojolicious-9.30.tar.gz) = faab973c56479e4309c6a3e15b294ea5d7aac10f0de726cf595f545a95f1df37
|
||||
SIZE (Mojolicious-9.30.tar.gz) = 852085
|
||||
|
||||
151
xapp/emacs28/Makefile
Normal file
151
xapp/emacs28/Makefile
Normal file
@@ -0,0 +1,151 @@
|
||||
#
|
||||
# $Id: Makefile 1740 2008-08-30 06:23:54Z root $
|
||||
#
|
||||
PORTNAME= emacs
|
||||
PORTVERSION= 28.2
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES+= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= emacs
|
||||
DIST_SUBDIR= gnu
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}${PORTSUBVERION}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= onborodin@gmail.com
|
||||
COMMENT= GNU editing macros
|
||||
|
||||
|
||||
LIB_DEPENDS+= libxml2.so:text/libxml2
|
||||
LIB_DEPENDS+= libiconv.so:text/libiconv
|
||||
LIB_DEPENDS+= libsysinfo.so:system/libsysinfo
|
||||
|
||||
LIB_DEPENDS+= libgdk-x11.so:gnome/libgtk2
|
||||
LIB_DEPENDS+= libgtk-x11.so:gnome/libgtk2
|
||||
LIB_DEPENDS+= libfreetype.so:graph/libfreetype2
|
||||
|
||||
SHARESTAT_DIR= /var/run
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES+= gmake tar:xz
|
||||
CONFIGURE_TARGET= ${MACHINE_ARCH}-pc-freebsd${OSREL:R}
|
||||
CONFIGURE_ARGS+= --sharedstatedir=${SHARESTAT_DIR}
|
||||
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
|
||||
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo
|
||||
|
||||
CONFIGURE_ARGS+= --without-dbus
|
||||
CONFIGURE_ARGS+= --without-gconf
|
||||
CONFIGURE_ARGS+= --without-gnutls
|
||||
CONFIGURE_ARGS+= --without-imagemagick
|
||||
#CONFIGURE_ARGS+= --without-libotf
|
||||
#CONFIGURE_ARGS+= --without-rsvg
|
||||
#CONFIGURE_ARGS+= --without-xft
|
||||
#CONFIGURE_ARGS+= --without-xml2
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CONFIGURE_ARGS+= --with-x
|
||||
CONFIGURE_ARGS+= --with-x-toolkit=gtk2
|
||||
CONFIGURE_ARGS+= --without-xpm
|
||||
CONFIGURE_ARGS+= --with-jpeg
|
||||
CONFIGURE_ARGS+= --with-tiff
|
||||
CONFIGURE_ARGS+= --with-gif
|
||||
CONFIGURE_ARGS+= --with-png
|
||||
CONFIGURE_ARGS+= --without-xim
|
||||
#CONFIGURE_ARGS+= --without-toolkit-scroll-bars
|
||||
#CONFIGURE_ENV= ac_cv_header_sys_sysinfo_h=no
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
STRIP= #
|
||||
|
||||
INFO+= ada-mode
|
||||
INFO+= auth
|
||||
INFO+= autotype
|
||||
INFO+= bovine
|
||||
INFO+= calc
|
||||
INFO+= ccmode
|
||||
INFO+= cl
|
||||
INFO+= dbus
|
||||
INFO+= dired-x
|
||||
INFO+= ebrowse
|
||||
INFO+= ede
|
||||
INFO+= ediff
|
||||
INFO+= edt
|
||||
INFO+= efaq
|
||||
INFO+= eieio
|
||||
INFO+= eintr
|
||||
INFO+= elisp
|
||||
INFO+= emacs
|
||||
INFO+= emacs-gnutls
|
||||
INFO+= emacs-mime
|
||||
INFO+= epa
|
||||
INFO+= erc
|
||||
INFO+= ert
|
||||
INFO+= eshell
|
||||
INFO+= eudc
|
||||
INFO+= flymake
|
||||
INFO+= forms
|
||||
INFO+= gnus
|
||||
INFO+= htmlfontify
|
||||
INFO+= idlwave
|
||||
INFO+= info
|
||||
INFO+= mairix-el
|
||||
INFO+= message
|
||||
INFO+= mh-e
|
||||
INFO+= newsticker
|
||||
INFO+= nxml-mode
|
||||
INFO+= org
|
||||
INFO+= pcl-cvs
|
||||
INFO+= pgg
|
||||
INFO+= rcirc
|
||||
INFO+= reftex
|
||||
INFO+= remember
|
||||
INFO+= sasl
|
||||
INFO+= sc
|
||||
INFO+= semantic
|
||||
INFO+= ses
|
||||
INFO+= sieve
|
||||
INFO+= smtpmail
|
||||
INFO+= speedbar
|
||||
INFO+= srecode
|
||||
INFO+= tramp
|
||||
INFO+= url
|
||||
INFO+= vip
|
||||
INFO+= viper
|
||||
INFO+= widget
|
||||
INFO+= wisent
|
||||
INFO+= woman
|
||||
|
||||
PLIST_SUB+= VERSION=${PORTVERSION}
|
||||
PLIST_SUB+= TARGET=${CONFIGURE_TARGET}
|
||||
|
||||
FILES= ${WRKSRC}/configure
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|gdk-2.0|gdk|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|gio-2.0|gio|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|glib-2.0|glib|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|gmodule-2.0|gmodule|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|gobject-2.0|gobject|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|gthread-2.0|gthread|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|gtk+-2.0|gtk+|g' ${FILES}
|
||||
${REINPLACE_CMD} -e 's|libxml-2.0|libxml2|g' ${FILES}
|
||||
|
||||
${REINPLACE_CMD} -e 's|librsvg-2.0|librsvg|g' ${FILES}
|
||||
|
||||
|
||||
# ${REINPLACE_CMD} -e 's|gconf-2.0|gconf|g' ${FILES}
|
||||
# ${REINPLACE_CMD} -e 's|gdk-pixbuf-2.0|gdk-pixbuf|g' ${FILES}
|
||||
# ${REINPLACE_CMD} -e 's|gnome-vfs-2.0|gnome-vfs|g' ${FILES}
|
||||
# ${REINPLACE_CMD} -e 's|libart-2.0|libart|g' ${FILES}
|
||||
# ${REINPLACE_CMD} -e 's|libgnome-2.0|libgnome|g' ${FILES}
|
||||
# ${REINPLACE_CMD} -e 's|libIDL-2.0|libIDL|g' ${FILES}
|
||||
|
||||
|
||||
post-install:
|
||||
cd ${STAGEDIR}${PREFIX}/bin && ${RM} emacs && ${MV} emacs-${PORTVERSION} emacs
|
||||
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
||||
#EOF
|
||||
3
xapp/emacs28/distinfo
Normal file
3
xapp/emacs28/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1664369379
|
||||
SHA256 (gnu/emacs-28.2.tar.xz) = ee21182233ef3232dc97b486af2d86e14042dbb65bbc535df562c3a858232488
|
||||
SIZE (gnu/emacs-28.2.tar.xz) = 47722600
|
||||
17
xapp/emacs28/pkg-deinstall
Normal file
17
xapp/emacs28/pkg-deinstall
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
PREFIX=${PKG_PREFIX}
|
||||
LOCALBASE=${PKG_PREFIX}
|
||||
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
${LOCALBASE}/bin/update-desktop-database -q ${PREFIX}/share/applications
|
||||
## ${LOCALBASE}/bin/update-mime-database ${PREFIX}/share/mime
|
||||
${LOCALBASE}/bin/gtk-update-icon-cache -q ${PREFIX}/share/icons/hicolor
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
40
xapp/emacs28/pkg-descr
Normal file
40
xapp/emacs28/pkg-descr
Normal file
@@ -0,0 +1,40 @@
|
||||
GNU Emacs is a self-documenting, customizable, extensible real-time
|
||||
display editor.
|
||||
|
||||
Users new to Emacs will be able to use basic features fairly rapidly
|
||||
by studying the tutorial and using the self-documentation features.
|
||||
Emacs also has an extensive interactive manual browser. It is easily
|
||||
extensible since its editing commands are written in Lisp.
|
||||
|
||||
GNU Emacs's many special packages handle mail reading (RMail) and
|
||||
sending (Mail), outline editing (Outline), compiling (Compile),
|
||||
running subshells within Emacs windows (Shell), running a Lisp
|
||||
read-eval-print loop (Lisp-Interaction-Mode), automated psychotherapy
|
||||
(Doctor :-) and many more.
|
||||
|
||||
|
||||
LEIM is Libraries of Emacs Input Method.
|
||||
|
||||
This enables you to input Multilingual Characters.
|
||||
|
||||
To input these characters, select the "language name" in which
|
||||
you want to input, and evalute the following two expressions:
|
||||
|
||||
(set-language-environment "language name")
|
||||
(toggle-input-method)
|
||||
|
||||
The "language name" you can choose is one of these:
|
||||
- Chinege - Chinese-BIG5 - Chinese-CNS
|
||||
- Chinese-GB - Cyrillic-ALT - Cyrillic-ISO
|
||||
- Cyrillic-KOI8 - Czech - Devanagari
|
||||
- Ethiopic - German - Greek
|
||||
- Hebrew - IPA - Japanese
|
||||
- Korean - Lao - Latin-1
|
||||
- Latin-2 - Latin-3 - Latin-4
|
||||
- Latin-5 - Romanian - Slovak
|
||||
- Thai - Tibetan - Vietnamese
|
||||
|
||||
In the default keybindings, (toggle-input-method) is bound to `C-\'.
|
||||
|
||||
|
||||
WWW: http://www.gnu.org/software/emacs/
|
||||
17
xapp/emacs28/pkg-install
Normal file
17
xapp/emacs28/pkg-install
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
PREFIX=${PKG_PREFIX}
|
||||
LOCALBASE=${PKG_PREFIX}
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
;;
|
||||
POST-INSTALL)
|
||||
${LOCALBASE}/bin/update-desktop-database -q ${PREFIX}/share/applications
|
||||
## ${LOCALBASE}/bin/update-mime-database ${PREFIX}/share/mime
|
||||
${LOCALBASE}/bin/gtk-update-icon-cache -q ${PREFIX}/share/icons/hicolor
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
4176
xapp/emacs28/pkg-plist
Normal file
4176
xapp/emacs28/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,14 @@
|
||||
--- ./data/Makefile.in.orig 2019-09-28 14:38:52.000000000 +0200
|
||||
+++ ./data/Makefile.in 2019-12-30 08:50:31.788564000 +0200
|
||||
@@ -492,13 +492,16 @@
|
||||
--- ./data/Makefile.in.orig 2020-11-08 19:15:23.000000000 +0200
|
||||
+++ ./data/Makefile.in 2022-12-17 00:47:39.881252000 +0200
|
||||
@@ -500,13 +500,18 @@
|
||||
tags/entities.html.tags
|
||||
|
||||
template_files = \
|
||||
+ templates/files/file.js \
|
||||
+ templates/files/file.jsx \
|
||||
+ templates/files/file.go \
|
||||
+ templates/files/file.pl \
|
||||
+ templates/files/file.pm \
|
||||
templates/files/file.html \
|
||||
templates/files/file_html5.html \
|
||||
templates/files/file.php \
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
--- ./data/templates/fileheader.orig 2018-12-16 13:02:55.000000000 +0200
|
||||
+++ ./data/templates/fileheader 2019-03-26 14:47:06.863703000 +0200
|
||||
@@ -1,4 +1,3 @@
|
||||
--- ./data/templates/fileheader.orig 2020-11-08 19:14:52.000000000 +0200
|
||||
+++ ./data/templates/fileheader 2022-12-12 19:59:44.874477000 +0200
|
||||
@@ -1,5 +1,3 @@
|
||||
-{filename}
|
||||
|
||||
Copyright {year} {developer} <{mail}>
|
||||
|
||||
-{gpl}
|
||||
|
||||
48
xapp/geany/files/patch-x-data-templates-files-file.pl
Normal file
48
xapp/geany/files/patch-x-data-templates-files-file.pl
Normal file
@@ -0,0 +1,48 @@
|
||||
--- ./data/templates/files/file.pl.orig 2022-12-12 21:37:08.520578000 +0200
|
||||
+++ ./data/templates/files/file.pl 2022-12-17 00:46:42.275540000 +0200
|
||||
@@ -0,0 +1,45 @@
|
||||
+#!/usr/bin/env perl
|
||||
+
|
||||
+{fileheader}
|
||||
+
|
||||
+package Hello;
|
||||
+
|
||||
+use strict;
|
||||
+use warnings;
|
||||
+
|
||||
+use Exporter qw(import);
|
||||
+our @EXPORT_OK = qw(hello);
|
||||
+
|
||||
+sub hello {
|
||||
+ print "hello\n";
|
||||
+}
|
||||
+
|
||||
+
|
||||
+sub new {
|
||||
+ my $class = shift;
|
||||
+ my $self = {
|
||||
+ };
|
||||
+ bless $self, $class;
|
||||
+ return $self;
|
||||
+}
|
||||
+
|
||||
+sub print {
|
||||
+ my $class = shift;
|
||||
+ print "hello\n";
|
||||
+}
|
||||
+
|
||||
+1;
|
||||
+
|
||||
+package main;
|
||||
+
|
||||
+use lib "libs";
|
||||
+
|
||||
+use strict;
|
||||
+use warnings;
|
||||
+use Hello::More qw(hello);
|
||||
+use Hello;
|
||||
+
|
||||
+hello();
|
||||
+
|
||||
+my $hello = Hello->new;
|
||||
+$hello->print;
|
||||
33
xapp/geany/files/patch-x-data-templates-files-file.pm
Normal file
33
xapp/geany/files/patch-x-data-templates-files-file.pm
Normal file
@@ -0,0 +1,33 @@
|
||||
--- ./data/templates/files/file.pm.orig 2022-12-17 00:46:59.967600000 +0200
|
||||
+++ ./data/templates/files/file.pm 2022-12-16 19:09:22.848913000 +0200
|
||||
@@ -0,0 +1,30 @@
|
||||
+#
|
||||
+# Copyright 2022 Oleg Borodin <borodin@unix7.org>
|
||||
+#
|
||||
+package Hello;
|
||||
+
|
||||
+use strict;
|
||||
+use warnings;
|
||||
+
|
||||
+use Exporter qw(import);
|
||||
+our @EXPORT_OK = qw(hello);
|
||||
+
|
||||
+sub hello {
|
||||
+ print "hello\n";
|
||||
+}
|
||||
+
|
||||
+sub new {
|
||||
+ my $class = shift;
|
||||
+ my $self = {
|
||||
+ };
|
||||
+ bless $self, $class;
|
||||
+ return $self;
|
||||
+}
|
||||
+
|
||||
+sub print {
|
||||
+ my $class = shift;
|
||||
+ print "hello\n";
|
||||
+}
|
||||
+
|
||||
+1;
|
||||
+#EOF
|
||||
@@ -152,6 +152,8 @@ share/geany/templates/files/file.html
|
||||
share/geany/templates/files/file.js
|
||||
share/geany/templates/files/file.jsx
|
||||
share/geany/templates/files/file.php
|
||||
share/geany/templates/files/file.pl
|
||||
share/geany/templates/files/file.pm
|
||||
share/geany/templates/files/file.rb
|
||||
share/geany/templates/files/file.tex
|
||||
share/geany/templates/files/main.c
|
||||
@@ -348,3 +350,4 @@ share/locale/zh_TW/LC_MESSAGES/geany.mo
|
||||
@dir share/locale/zh_CN
|
||||
@dir share/locale/zh_TW/LC_MESSAGES
|
||||
@dir share/locale/zh_TW
|
||||
@dir share/locale
|
||||
|
||||
Reference in New Issue
Block a user