Import x11/xcolor, a lightweight color picker.
Original submission by Laurence Tratt, who takes MAINTAINER -- thanks! ok edd@ Lightweight color picker for X11. Use the mouse to select colors visible anywhere on the screen to get their RGB representation.
This commit is contained in:
parent
6caaaa0d56
commit
971c601aed
73
x11/xcolor/Makefile
Normal file
73
x11/xcolor/Makefile
Normal file
@ -0,0 +1,73 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2020/07/24 17:22:50 bcallah Exp $
|
||||
|
||||
COMMENT = lightweight color picker
|
||||
|
||||
GH_ACCOUNT = Soft
|
||||
GH_PROJECT = xcolor
|
||||
GH_TAGNAME = 0.4.0
|
||||
|
||||
CATEGORIES = x11
|
||||
|
||||
HOMEPAGE = https://soft.github.io/xcolor/
|
||||
|
||||
MAINTAINER = Laurence Tratt <laurie@tratt.net>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += c c++abi m pthread xcb xcb-shape
|
||||
|
||||
MODULES = devel/cargo
|
||||
|
||||
DISTFILES += ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MODCARGO_CRATES += ansi_term 0.11.0 # MIT
|
||||
MODCARGO_CRATES += atty 0.2.8 # MIT
|
||||
MODCARGO_CRATES += backtrace 0.3.5 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += backtrace-sys 0.1.16 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += bitflags 1.0.1 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += byteorder 1.2.1 # Unlicense/MIT
|
||||
MODCARGO_CRATES += bytes 0.4.6 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += cc 1.0.7 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += cfg-if 0.1.2 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += clap 2.31.2 # MIT
|
||||
MODCARGO_CRATES += failure 0.1.1 # MIT OR Apache-2.0
|
||||
MODCARGO_CRATES += failure_derive 0.1.1 # MIT OR Apache-2.0
|
||||
MODCARGO_CRATES += gcc 0.3.54 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += iovec 0.1.2 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += lazy_static 1.0.0 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += libc 0.2.39 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += log 0.4.1 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += memchr 1.0.2 # Unlicense/MIT
|
||||
MODCARGO_CRATES += nix 0.10.0 # MIT
|
||||
MODCARGO_CRATES += nom 3.2.1 # MIT
|
||||
MODCARGO_CRATES += quote 0.3.15 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += redox_syscall 0.1.37 # MIT
|
||||
MODCARGO_CRATES += redox_termios 0.1.1 # MIT
|
||||
MODCARGO_CRATES += rustc-demangle 0.1.7 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += strsim 0.7.0 # MIT
|
||||
MODCARGO_CRATES += syn 0.11.11 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += synom 0.11.3 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += synstructure 0.6.1 # MIT
|
||||
MODCARGO_CRATES += termion 1.5.1 # MIT
|
||||
MODCARGO_CRATES += textwrap 0.9.0 # MIT
|
||||
MODCARGO_CRATES += unicode-width 0.1.4 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += unicode-xid 0.0.4 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += vec_map 0.8.0 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += void 1.0.2 # MIT
|
||||
MODCARGO_CRATES += winapi 0.2.8 # MIT
|
||||
MODCARGO_CRATES += winapi 0.3.4 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += winapi-i686-pc-windows-gnu 0.4.0 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += winapi-x86_64-pc-windows-gnu 0.4.0 # MIT/Apache-2.0
|
||||
MODCARGO_CRATES += xcb 0.8.2 # MIT
|
||||
|
||||
CONFIGURE_STYLE = cargo
|
||||
SEPARATE_BUILD = Yes
|
||||
|
||||
MODCARGO_RUSTFLAGS = -L${X11BASE}/lib
|
||||
|
||||
post-install:
|
||||
rm -f ${PREFIX}/.crates2.json
|
||||
${INSTALL_MAN} ${WRKSRC}/man/xcolor.1 ${PREFIX}/man/man1/
|
||||
|
||||
.include <bsd.port.mk>
|
80
x11/xcolor/distinfo
Normal file
80
x11/xcolor/distinfo
Normal file
@ -0,0 +1,80 @@
|
||||
SHA256 (cargo/ansi_term-0.11.0.tar.gz) = 7km69sthe4U6qNk79CDbI4P6tG0xRILKKAO0DV/el5s=
|
||||
SHA256 (cargo/atty-0.2.8.tar.gz) = r4AUPW92CNdG3xUgcJ5dFByW8kCw5isKpBvftTN02dQ=
|
||||
SHA256 (cargo/backtrace-0.3.5.tar.gz) = 67v1mxxD7vqMPt45D8w2ggtJmfeRQQQBW+JQJeDWKvI=
|
||||
SHA256 (cargo/backtrace-sys-0.1.16.tar.gz) = RFhXYdYWGw9Xr8SUgqtr0Gfk7e9IwSoVLCN+sCA/dmE=
|
||||
SHA256 (cargo/bitflags-1.0.1.tar.gz) = s8MNOALftygWgNYoXyzNqowtj+5B+TgF26XEz1DcI88=
|
||||
SHA256 (cargo/byteorder-1.2.1.tar.gz) = ZSgFt+c/ranYXppmgqSr1JDLUtlq7swS4zoN4039DSM=
|
||||
SHA256 (cargo/bytes-0.4.6.tar.gz) = G320N9cYl39tybLj/W/DQ8AqxriZtz/dIXkWNEe9nOk=
|
||||
SHA256 (cargo/cc-1.0.7.tar.gz) = h/OPEi21YVMZqYV1flJsABYdkk0ZtxoPPoDFK6sa3PY=
|
||||
SHA256 (cargo/cfg-if-0.1.2.tar.gz) = 1MgZoSh+thjfR8xkcXPFxMZroZ2Iim5Q1gVnKu0xQN4=
|
||||
SHA256 (cargo/clap-2.31.2.tar.gz) = 8PFricu57jbYdIPck5/p8eE8BYmNVteyMKDU3/AzpTY=
|
||||
SHA256 (cargo/failure-0.1.1.tar.gz) = k0eZtsHeR1oBKgLasKzhrOQ3ie5Lmbz78aLj6M7V3oI=
|
||||
SHA256 (cargo/failure_derive-0.1.1.tar.gz) = x83aVVu5DJu2ejtnCg9C3o5z9ZgVJBI62FeKr+yN24s=
|
||||
SHA256 (cargo/gcc-0.3.54.tar.gz) = XjPsKQ2g0SeCUBNZfb38KL7klkaQx84RZsvCp70Isbs=
|
||||
SHA256 (cargo/iovec-0.1.2.tar.gz) = 2+bkF+fQl122USuQeW6M4iMUWsTjPDd+SkKIKg6Iuwg=
|
||||
SHA256 (cargo/lazy_static-1.0.0.tar.gz) = yPMQR9qjZfGb4UtHwp3098O1gYMkB9qr5q53OXYZI30=
|
||||
SHA256 (cargo/libc-0.2.39.tar.gz) = 9UJjrZkgclTPWLX3Aey0MscXRF6i7orzhzNL3RoD/f8=
|
||||
SHA256 (cargo/log-0.4.1.tar.gz) = ifAQ6EPysaMdvTFrO41EN1i8Y0vtN6q63lnGhtZE4KI=
|
||||
SHA256 (cargo/memchr-1.0.2.tar.gz) = FI+rLlG08c/GbaKnwymB0dPAg6gDl4JouxH+S4aSXno=
|
||||
SHA256 (cargo/nix-0.10.0.tar.gz) = t/1WgdE/2mRkYs+9Tl8gUSeaiaVE1Q65jDZbUHJGg58=
|
||||
SHA256 (cargo/nom-3.2.1.tar.gz) = Ba7FDHD9KIcCvNkyhKhERgfzKS298qMN5epdzb5yKHs=
|
||||
SHA256 (cargo/quote-0.3.15.tar.gz) = em6SC2XGXxCyrmXIMagaBzqJ7dKMfM6JR1v/Rnq0Fno=
|
||||
SHA256 (cargo/redox_syscall-0.1.37.tar.gz) = DZLuzrrSK3Z5FeTVKfifKO6W279aSBDSuEQ3PxNkF/0=
|
||||
SHA256 (cargo/redox_termios-0.1.1.tar.gz) = fokc/kjpEApwo7brZS/vKJIMEX02Yzloe9VXYWDbD3Y=
|
||||
SHA256 (cargo/rustc-demangle-0.1.7.tar.gz) = EftDogagQRb/18/Pm8uUH462zH/2ZyciRrChx0JZo8s=
|
||||
SHA256 (cargo/strsim-0.7.0.tar.gz) = u084ASWSapnlK8J5JBU5wBgyP6sFrWNotW+T2Taf9VA=
|
||||
SHA256 (cargo/syn-0.11.11.tar.gz) = 07iRuQFciMV2NDubPkHCwRpRwhnvBnsmS9nIqptEHa0=
|
||||
SHA256 (cargo/synom-0.11.3.tar.gz) = o5MGbtkBDrrtYLnq+jc9SxuqwYbdfgCFVbD3ArUZRbY=
|
||||
SHA256 (cargo/synstructure-0.6.1.tar.gz) = OnYdEubY3LTc+VKnqJtHXjqdaeSmkwfgGkcJd2QpFL0=
|
||||
SHA256 (cargo/termion-1.5.1.tar.gz) = aJo736q0Of2SvIffXEx4QX08vlN0hydOmwstznbpIJY=
|
||||
SHA256 (cargo/textwrap-0.9.0.tar.gz) = wLWba0tE2GfxNw7xvZG/smK/B78K5lwgLqL7wWFTtpM=
|
||||
SHA256 (cargo/unicode-width-0.1.4.tar.gz) = vzoRN3VxSiLct3TY6jZVxToy3rrmOgY6zACpHMWGJF8=
|
||||
SHA256 (cargo/unicode-xid-0.0.4.tar.gz) = jB+GDX0pzwLLLz81n9NZka89MLrFLFfSZaPEYQdMtNw=
|
||||
SHA256 (cargo/vec_map-0.8.0.tar.gz) = iHtbYxwq0BYou7qn3UyGn4DTGGaI+NC29Yd0++MkmIw=
|
||||
SHA256 (cargo/void-1.0.2.tar.gz) = agLkiF7TvA8t6Q6m3UXry7ZtrP/gNUf627DuridwiH0=
|
||||
SHA256 (cargo/winapi-0.2.8.tar.gz) = Fn3J1pSam4V/NFEnXpEcP0QlWELB96dvM8VRA6kJCHo=
|
||||
SHA256 (cargo/winapi-0.3.4.tar.gz) = BOO9Ih/L6KJxNZwE8hp2230MYCiGLRu1US2F4eLrW7M=
|
||||
SHA256 (cargo/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = rDuHxjYgQm3ZuZHlzgMp7/VFvMu7NPO+Cf9vtqtRt7Y=
|
||||
SHA256 (cargo/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = cS4ieEHQV8HuHNL7Ivp+WlRhro5I+iynnsQs/BkxGD8=
|
||||
SHA256 (cargo/xcb-0.8.2.tar.gz) = XpF6PyQULp/4viQU42xknUfWzCuoHxYgHN75blM+At4=
|
||||
SHA256 (xcolor-0.4.0.tar.gz) = NejqretT13+Qhpr06XvSJTpz9DhiTHzm7nFW0Su4P84=
|
||||
SIZE (cargo/ansi_term-0.11.0.tar.gz) = 17087
|
||||
SIZE (cargo/atty-0.2.8.tar.gz) = 5708
|
||||
SIZE (cargo/backtrace-0.3.5.tar.gz) = 27636
|
||||
SIZE (cargo/backtrace-sys-0.1.16.tar.gz) = 283418
|
||||
SIZE (cargo/bitflags-1.0.1.tar.gz) = 13451
|
||||
SIZE (cargo/byteorder-1.2.1.tar.gz) = 17841
|
||||
SIZE (cargo/bytes-0.4.6.tar.gz) = 43033
|
||||
SIZE (cargo/cc-1.0.7.tar.gz) = 40410
|
||||
SIZE (cargo/cfg-if-0.1.2.tar.gz) = 6668
|
||||
SIZE (cargo/clap-2.31.2.tar.gz) = 194051
|
||||
SIZE (cargo/failure-0.1.1.tar.gz) = 26782
|
||||
SIZE (cargo/failure_derive-0.1.1.tar.gz) = 9312
|
||||
SIZE (cargo/gcc-0.3.54.tar.gz) = 37248
|
||||
SIZE (cargo/iovec-0.1.2.tar.gz) = 8565
|
||||
SIZE (cargo/lazy_static-1.0.0.tar.gz) = 12611
|
||||
SIZE (cargo/libc-0.2.39.tar.gz) = 325829
|
||||
SIZE (cargo/log-0.4.1.tar.gz) = 20731
|
||||
SIZE (cargo/memchr-1.0.2.tar.gz) = 8639
|
||||
SIZE (cargo/nix-0.10.0.tar.gz) = 124570
|
||||
SIZE (cargo/nom-3.2.1.tar.gz) = 104073
|
||||
SIZE (cargo/quote-0.3.15.tar.gz) = 12041
|
||||
SIZE (cargo/redox_syscall-0.1.37.tar.gz) = 13980
|
||||
SIZE (cargo/redox_termios-0.1.1.tar.gz) = 3227
|
||||
SIZE (cargo/rustc-demangle-0.1.7.tar.gz) = 10681
|
||||
SIZE (cargo/strsim-0.7.0.tar.gz) = 8435
|
||||
SIZE (cargo/syn-0.11.11.tar.gz) = 63309
|
||||
SIZE (cargo/synom-0.11.3.tar.gz) = 17120
|
||||
SIZE (cargo/synstructure-0.6.1.tar.gz) = 11257
|
||||
SIZE (cargo/termion-1.5.1.tar.gz) = 20659
|
||||
SIZE (cargo/textwrap-0.9.0.tar.gz) = 15795
|
||||
SIZE (cargo/unicode-width-0.1.4.tar.gz) = 15283
|
||||
SIZE (cargo/unicode-xid-0.0.4.tar.gz) = 16034
|
||||
SIZE (cargo/vec_map-0.8.0.tar.gz) = 13742
|
||||
SIZE (cargo/void-1.0.2.tar.gz) = 2356
|
||||
SIZE (cargo/winapi-0.2.8.tar.gz) = 455145
|
||||
SIZE (cargo/winapi-0.3.4.tar.gz) = 905247
|
||||
SIZE (cargo/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = 2918815
|
||||
SIZE (cargo/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = 2947998
|
||||
SIZE (cargo/xcb-0.8.2.tar.gz) = 129071
|
||||
SIZE (xcolor-0.4.0.tar.gz) = 101766
|
115
x11/xcolor/patches/patch-man_xcolor_1
Normal file
115
x11/xcolor/patches/patch-man_xcolor_1
Normal file
@ -0,0 +1,115 @@
|
||||
$OpenBSD: patch-man_xcolor_1,v 1.1.1.1 2020/07/24 17:22:50 bcallah Exp $
|
||||
|
||||
Index: man/xcolor.1
|
||||
--- man/xcolor.1.orig
|
||||
+++ man/xcolor.1
|
||||
@@ -1,58 +1,43 @@
|
||||
'\" t
|
||||
.TH XCOLOR 1 2018
|
||||
-
|
||||
.SH NAME
|
||||
xcolor \- lightweight color picker for X11
|
||||
-
|
||||
.SH SYNOPSIS
|
||||
-
|
||||
.B xcolor
|
||||
[\fB\-f\fR \fINAME\fR | \fB\-c\fR \fIFORMAT\fR] [\fB\-s\fR [\fISELECTION\fR]] [\fB\-n\fR] [\fB\-v\fR] [\fB\-h\fR]
|
||||
-
|
||||
.SH DESCRIPTION
|
||||
-
|
||||
\fBxcolor\fR is a lightweight color picker for X11. Use mouse to select
|
||||
colors visible anywhere on the screen to get their RGB representation.
|
||||
-
|
||||
.PP
|
||||
By default, the selected color is printed to the standard output.
|
||||
-
|
||||
.SH OPTIONS
|
||||
-
|
||||
.TP
|
||||
.BI \-f " NAME\fR,\fP " \-\-format " NAME"
|
||||
Specify output format. Possible values for \fINAME\fR are \fBhex\fR, \fBHEX\fR,
|
||||
\fBhex!\fR, \fBHEX!\fR, \fBrgb\fR, and \fBplain\fR. See \fBFORMATTING\fR for an
|
||||
explanation of different formatting options. Conflicts with \fB\-\-custom\fR.
|
||||
-
|
||||
.TP
|
||||
.BI \-c " FORMAT\fR,\fP " \-\-custom " FORMAT"
|
||||
Specify template for custom output format. See \fBCUSTOM FORMATTING\fR for an
|
||||
explanation of template syntax. Conflicts with \fB\-\-format\fR.
|
||||
-
|
||||
.TP
|
||||
.BI \-s " \fR[\fPSELECTION\fR]\fP\fR,\fP " \-\-selection " \fR[\fPSELECTION\fR]\fP"
|
||||
Save output to X11 selection. Possible values for \fISELECTION\fR are
|
||||
\fBprimary\fR and \fBsecondary\fR. If \fISELECTION\fR is not supplied,
|
||||
\fBprimary\fR is used.
|
||||
-
|
||||
.TP
|
||||
.BR \-n ", " \-\-no\-preview
|
||||
Disable preview window.
|
||||
-
|
||||
.TP
|
||||
.BR \-v ", " \-\-version
|
||||
Print version information and exit.
|
||||
-
|
||||
.TP
|
||||
.BR \-h ", " \-\-help
|
||||
Print help message and exit.
|
||||
-
|
||||
.SH FORMATTING
|
||||
By default, the color values are printed in lowercase hexadecimal format. The
|
||||
output format can be changed using the \fB\-\-format\fR \fINAME\fR switch. The
|
||||
possible \fINAME\fR values are:
|
||||
-
|
||||
.TP
|
||||
.B hex
|
||||
Lowercase hexadecimal (default)
|
||||
@@ -71,25 +56,20 @@ Decimal RGB
|
||||
.TP
|
||||
.B plain
|
||||
Decimal with semicolon separators
|
||||
-
|
||||
.PP
|
||||
The compact form refers to CSS three-letter color codes as specified by CSS
|
||||
Color Module Level 3. If the color is not expressible in three-letter form, the
|
||||
regular six-letter form will be used.
|
||||
-
|
||||
.SS CUSTOM FORMATTING
|
||||
-
|
||||
The \fB\-\-format\fR switch provides quick access to some commonly used
|
||||
formatting options. However, if custom output formatting is desired, this can be
|
||||
achieved using the \fB\-\-custom\fR \fIFORMAT\fR switch. The \fIFORMAT\fR
|
||||
parameter specifies a template for the output and supports a simple template
|
||||
language.
|
||||
-
|
||||
\fIFORMAT\fR templates can contain special expansions that are written inside
|
||||
\fB%\fR{\fI...\fR} blocks. These blocks will be expanded into color values
|
||||
according to the specifiers defined inside the block. Here are examples of valid
|
||||
format strings and what they might translate to:
|
||||
-
|
||||
.RS
|
||||
.TS
|
||||
lB lB
|
||||
@@ -120,24 +100,19 @@ bellow illustrates how we can use these rules to decod
|
||||
`----- Character to use for padding (\fI0\fR)
|
||||
.RE
|
||||
.fi
|
||||
-
|
||||
The output is the contents of the red color channel formatted in binary and
|
||||
padded with zeroes to be sixteen characters long.
|
||||
-
|
||||
.SH ENVIRONMENT
|
||||
-
|
||||
.TP
|
||||
.I XCOLOR_FOREGROUND
|
||||
Disable daemon mode. Because of the way selections work in X11, \fBxcolor\fR
|
||||
forks into background when \fB\-\-selection\fR mode is used. This behavior can
|
||||
be disabled by defining \fIXCOLOR_FOREGROUND\fR environment variable.
|
||||
-
|
||||
.TP
|
||||
.I XCOLOR_DISABLE_SHAPE
|
||||
Disable the use of shaped preview window. By default, \fBxcolor\fR tries to use
|
||||
a round-shaped preview window for displaying the currently selected color. This
|
||||
behavior can be disabled by defining \fIXCOLOR_DISABLE_SHAPE\fR environment
|
||||
variable.
|
||||
-
|
||||
.SH AUTHORS
|
||||
Samuel Laurén <samuel.lauren@iki.fi>
|
2
x11/xcolor/pkg/DESCR
Normal file
2
x11/xcolor/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
Lightweight color picker for X11. Use the mouse to select colors visible
|
||||
anywhere on the screen to get their RGB representation.
|
3
x11/xcolor/pkg/PLIST
Normal file
3
x11/xcolor/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/07/24 17:22:50 bcallah Exp $
|
||||
@bin bin/xcolor
|
||||
@man man/man1/xcolor.1
|
Loading…
x
Reference in New Issue
Block a user