summaryrefslogtreecommitdiff
path: root/x11-misc/habak
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/habak
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/habak')
-rw-r--r--x11-misc/habak/Manifest6
-rw-r--r--x11-misc/habak/files/README.en165
-rw-r--r--x11-misc/habak/habak-0.2.5-r2.ebuild44
-rw-r--r--x11-misc/habak/metadata.xml8
4 files changed, 223 insertions, 0 deletions
diff --git a/x11-misc/habak/Manifest b/x11-misc/habak/Manifest
new file mode 100644
index 000000000000..f4417d9884de
--- /dev/null
+++ b/x11-misc/habak/Manifest
@@ -0,0 +1,6 @@
+AUX README.en 6729 SHA256 af228337ec965b76b4287cb35d36df28427a8ba947eb000a6f00bcf874a6bf05 SHA512 2857284f10734223fc03c57150f796bad07ecdcf9fd687893155f16b3633903df322d397be7f5e51f2c5ac87ae27d246549dd098b36e061ffa2d2dd3ae610e58 WHIRLPOOL 2adee521eb1bf382a346c6a76160f83af8260095bb5e1e840a02c5229e4ffbf8cc31e55adea47b76bc503d703cb34d8a062f4b5145b7995355de16630f0753fe
+DIST habak-0.2.5.tar.bz2 22657 SHA256 a4cdd16c34a147c8cba8dd3fdcfe9c55b762a77476ff69fcc5b79f2859660005 SHA512 256ac24a3b322397b6cdbd2ca8add5938c77d166092a783234baa6186c3b4e01aeffd0b890749c7ac14aa39961e5fc6326f614ceb04eadfc5e4af282d04b7188 WHIRLPOOL 3e124d3037f5bc528686c332be618f77ae23b26e79c6a2f367667eadb2a5c7160dacf7d5a79c82e61534334da4389ecd7e09a78374bcf0251e191297cb1bd0c6
+EBUILD habak-0.2.5-r2.ebuild 962 SHA256 5845fa1487a82a4d5b55146119b8a033a4027b315e443149f4635ec1007f5d5d SHA512 04097126743449ba3129359018aac672cf80a7c1a059dc294af9d8ad92dcb5429468e0566773f2a7ebb1586f972c421a8116fdb74e42abf00c56f44afcfe27ea WHIRLPOOL fd027a10c984aff17d4c0f5d6ab203d785b043696fce12367dfad18e3de24455c4e7fb74296c4a10a83c9d031f788801059168efb12e4b0d6d657e978bdf1884
+MISC ChangeLog 2445 SHA256 471d27fe68ec78651ff4eada16d46074fa7f1af801abdbcd7274d13d86612197 SHA512 c9ac2a4332b73a6a2f3ce74c19ef9fe3ede0bb559fe78a57e580f959ce8008650a6059d97427f7340c15baef318379d81563c95ba740ddc5af8c8735359794d9 WHIRLPOOL 1212f04200e9e1524f232dd328b17f49d7f923d534a6794622bb0fbe0ec27fd46e11fd4397e4618ad08ab3c2214aecc0f65574c940930f6c6482935e538923df
+MISC ChangeLog-2015 5678 SHA256 281fad08b4bec00aaef7babfd4ff980cb90e415ebd08a4b1d3da77c706d0731d SHA512 8e7a5c6340c32741f67fd7c2ea41300534f75e146091f65bc70e43bd806048b68e8ab9c00b763e95f5f464bcb7a93532255d959853ca98ec30e98f4dd4293a9f WHIRLPOOL 17809e0a834955ca00cae86c243766a93ac9ee6a10ee671bc84b76935601d93b897c51a8b781fd020007a09ec92b9333ff66b01ca807153c4eb4aa7ea2c04d1e
+MISC metadata.xml 272 SHA256 b389ad9ba70c18154af4fc164e31d5b1e2a4e99815d34319b4a4f46ccef2be52 SHA512 ebe67da08587903b5b82fc194aa3c8f1ab65371f60d2c134928362e089550d9e9fd9531bffe8b676a345b5bf0ab209ce7f50d37d98201a88176f002e17582493 WHIRLPOOL 3d6a9660a11c299dbb7fa3ec6821005f2540dc8fc9e499206d38d79d54023b3ddc66a019b2c88fbc92199b9f5335088b47fa3fdd781f92f2da3ad98b26bc2a50
diff --git a/x11-misc/habak/files/README.en b/x11-misc/habak/files/README.en
new file mode 100644
index 000000000000..0bdbc259119f
--- /dev/null
+++ b/x11-misc/habak/files/README.en
@@ -0,0 +1,165 @@
+Habak - "Ha" Background
+=========
+
+Compilation:
+ We need a compiler, X server and Imlib2. Just run make, that's all.
+
+Installation:
+ Well, place a ready binary where you want.
+
+A short review:
+
+
+Habak is using layers. The lowest layer is just a black screen.
+On this you can place other objects, called habaks. There are
+three kinds of habaks: graphic files (images), fonts and "internal objects"
+(internals). Wallaper is created by putting on a black screen
+one or more habaks. An order of habaks in command line is an order
+of putting them on desktop, so the last habak will be drawed above
+previous habaks.
+
+Kinds of habaks:
+
+
+Files (images) are included by -i option, ie:
+
+./habak -i ~/graphics/wallpaper.jpg
+
+will include to desktop wallpaper.jpg file. If you typed after -i not a file,
+but a directory, habak would create a list of files contained within, randomly
+select any one of them, and then try to load it. In other words,
+if you have a lot of pictures in ~/gfx/nice_wallpapers/ then habak
+can choose random image. You only need to run './habak -i ~/gfx/nice_wallpapers/'
+
+Aside from files, you can use fonts (TrueType). Option -f will be useful in this
+case. By means of -f option you have to point a file with TrueType font, ie.
+
+./habak -f ~/.fonts/nice_font.ttf
+
+You can set a size of font, by typing it following slash after font name, ie
+'./habak -f ~/.fonts/nice_font.ttf/50'
+
+Third (and last) type of habaks are internal habaks. You can enable them
+by the -I option. They are not adopting any external data, but
+themself generate some patterns. At this moment only two patterns
+are available, "int" and "INT", which do an interlacing. For example:
+
+./habak -I int
+
+Internal habak "int" do an interlacing, by turning out even lines
+of image. Very nice effect, especially if wallpaper is gaudy.
+"INT" habak works identical as "int", but turns out odd lines
+(by putting together "int" and "INT" you can turn out all lines of screen).
+
+By default lines aren't turned out in fact, but darked (in my opinion
+it generates a better effect), but you can control it by
+-c color modifier (i will tell about it later).
+
+
+USAGE PHILOSOPHY
+You can (and you should to) put habaks together, ie.
+
+./habak -i ~/gfx/cool.jpg -I int -i ~/gfx/small_logo.png -f ~/.fonts/deltafont.ttf -f ~/.fonts/deltafont.ttf/10
+
+that syntax means, that habak will firstly draw coll.jpg file,
+then put on internal habak "interlace", and then will draw small_logo.png
+image, then deltafont.ttf font, and eventually one more time deltafont.ttf
+file, but this time with size of 10 pixels. Simple.
+
+MODIFIERS
+Obviously, alone habaks wouldn't be so elastic, so there are available a lot
+of modifiers that affect on them look. Some modifiers are even
+necessary. Modifiers are options, that are given following
+a definition of any habak - they affect only just followed habak.
+
+Modifier -C
+-C is a centering modifier. Habak that is followed by this modifier will be
+centered on the screen.
+
+Modifier -S
+-S is a scaling modifier. Habak treated by this modifier will be scaled
+to fill whole screen (but with proportions saved). Using it have a sense
+only for file habaks (images).
+
+Modifier -p
+-p is a position modifier. It precisely determines position of habak
+on desktop. This modifier requires also additional parameter, in the
+form of 'x,y', ie.
+
+./habak -i ~/gfx/meggy.jpg -p 10,50
+
+will render meggy.jpg file with upper-left corner in point 10,50 on desktop.
+Coortinates can be negative, so position will be calculated from the
+opposite side of screen, ie.
+
+./habak -i ~/gfx/meggy.jpg -p -10,50
+
+will calculate "the beggining" position of habak to a ten pixels from
+right and 50 pixels from upper side of screen. To place habak for example
+in upper-right corner, you should use '-p -0,0'
+
+Modifier -c
+-c is a color modifier. Some habaks supports choosing a color
+(at this time only font habaks and internal habaks). -C option
+require parameter, that describe color in form of R,G,B,A, ie.
+
+./habak -I int -c 50,60,70,190
+
+means using "int" habak with color:
+- red component set to 50
+- green component set to 60
+- blue component set to 70
+- alpha channel set to 190
+
+All numbers accepts numbers from 0 (minimal saturation) to 255
+(maximal saturation).
+
+For example '-c 0,0,0,255' means black, fully not transparent color,
+'-c 255,255,255,0' means white, fully transparent color (so just
+not visible), and '-c 200,0,0,128' is a strong red and transparent
+in 50% color.
+
+Modifier -t
+This modifier is a text modifier, works only with font habak.
+As parameter accepts only one line of text, that is rendered
+by the font habak. Any text is accepted, you can write kernel
+version, date, your name, name of favourite distribution or
+image of cat that have a lie-in on your printer. Select something,
+i like a date, text will be nicely antialiased, if you want to use
+not ASCII characters, you have to use utf-8 encoding.
+
+For example.
+
+./habak -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 0,-0 -c 240,240,240,200
+
+will render on a black screen for example text "User gregory on day
+2003-12-21", using deltafont.ttf font in size of 15 pixels. Text
+will be placed in lower-left corner of screen, gray color and will
+be transparent a little.
+
+Obviously it is a so simple example, you can complicate it:
+
+./habak -i /usr/local/share/backgrounds/lens -C -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 0,-0 -c 240,240,240,200
+
+Now on the background firstly will be placed centered image
+from /usr/local/share/backgrounds/lens directory, and that
+text will be rendered on it. You can complicate it yet:
+
+./habak -i /usr/local/share/backgrounds/lens -C -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 5,-0 -c 240,240,240,100 -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 0,-5 -c 240,240,240,255
+
+This situation is simpilar, but i complicated text a little -
+i generats *two* font habaks with the same content, but
+one of it is displacemented a little, and have smaller
+transparency. It gives so nice effect of shadow under text. By
+putting together *several* such shadows differenced in size of font
+and intensivity of transparency you can achieve fantastic effects.
+
+Finally, fire up:
+
+./habak -i /usr/local/share/backgrounds/lens -C -I int -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 5,-0 -c 240,240,240,100 -f ~/.fonts/deltafont.ttf/15 -t "User $USER on day `date +%Y-%m-%d`" -p 0,-5 -c 240,240,240,255
+
+Here i added an internal habak "interlace", between picture
+from /usr/local/share/backgrounds/lens and font habaks, so
+image is faced by small grid of interlacing, but text is not
+(because it is placed above interlacing).
+
diff --git a/x11-misc/habak/habak-0.2.5-r2.ebuild b/x11-misc/habak/habak-0.2.5-r2.ebuild
new file mode 100644
index 000000000000..31cb75d3256d
--- /dev/null
+++ b/x11-misc/habak/habak-0.2.5-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A simple but powerful tool to set desktop wallpaper"
+HOMEPAGE="http://home.gna.org/fvwm-crystal/"
+SRC_URI="http://download.gna.org/fvwm-crystal/${PN}/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="media-libs/imlib2[X]
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+# Skip into the src directory so we avoid a recursive make call that
+# is going to break parallel make.
+S="${WORKDIR}/${P}/src"
+
+DOCS=( ChangeLog README TODO "${FILESDIR}"/README.en )
+
+src_prepare() {
+ default
+ sed -i \
+ -e '/(LDFLAGS)/s:$: -lImlib2 -lm -lX11:' \
+ -e 's:gcc:$(CC):' \
+ "${S}"/Makefile || die "Makefile fixing failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ cd "${WORKDIR}/${P}" || die
+ einstalldocs
+}
diff --git a/x11-misc/habak/metadata.xml b/x11-misc/habak/metadata.xml
new file mode 100644
index 000000000000..49c86a887b6a
--- /dev/null
+++ b/x11-misc/habak/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+</maintainer>
+</pkgmetadata>